fix: try at fixing incorrect scan box size on smaller screens
This commit is contained in:
parent
8a464cc665
commit
587cc0689a
5 changed files with 24 additions and 14 deletions
|
|
@ -123,6 +123,12 @@ class _AddPageState extends State<AddPage> {
|
|||
}
|
||||
},
|
||||
),
|
||||
Center(
|
||||
child: SvgPicture.asset(
|
||||
'assets/scan-overlay.svg',
|
||||
height: (MediaQuery.sizeOf(context).height / 5) * 2,
|
||||
),
|
||||
),
|
||||
SafeArea(
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
|
|
@ -175,7 +181,6 @@ class _AddPageState extends State<AddPage> {
|
|||
),
|
||||
),
|
||||
),
|
||||
Center(child: SvgPicture.asset('assets/scan-overlay.svg')),
|
||||
SafeArea(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
|
|
|
|||
|
|
@ -51,6 +51,12 @@ class _ScanScreenState extends State<ScanScreen> {
|
|||
await widget.viewModel.scanBook(barcodes);
|
||||
},
|
||||
),
|
||||
Center(
|
||||
child: SvgPicture.asset(
|
||||
'assets/scan-overlay.svg',
|
||||
height: (MediaQuery.sizeOf(context).height / 5) * 2,
|
||||
),
|
||||
),
|
||||
SafeArea(
|
||||
child: Column(
|
||||
children: [
|
||||
|
|
@ -63,7 +69,6 @@ class _ScanScreenState extends State<ScanScreen> {
|
|||
],
|
||||
),
|
||||
),
|
||||
Center(child: SvgPicture.asset('assets/scan-overlay.svg')),
|
||||
Column(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
|
|
|
|||
Reference in a new issue