fix: try at fixing incorrect scan box size on smaller screens

This commit is contained in:
alzalia1 2025-08-19 22:57:44 +02:00
parent 8a464cc665
commit 587cc0689a
5 changed files with 24 additions and 14 deletions

View file

@ -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,

View file

@ -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,