From 8eed330af5d1c43b996bcc6479085d3e8ebbea6f Mon Sep 17 00:00:00 2001 From: Erdem Yerebasmaz Date: Tue, 23 Jul 2024 11:27:58 +0300 Subject: [PATCH] Fix alignment of overlay icons on QR Scan overlay (#90) fixes #73 --- lib/routes/qr_scan/qr_scan.dart | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/lib/routes/qr_scan/qr_scan.dart b/lib/routes/qr_scan/qr_scan.dart index 06508d0e..c9c746da 100644 --- a/lib/routes/qr_scan/qr_scan.dart +++ b/lib/routes/qr_scan/qr_scan.dart @@ -82,17 +82,24 @@ class QRScanState extends State { ), const ScanOverlay(), SafeArea( - child: Column( - crossAxisAlignment: CrossAxisAlignment.end, + child: Stack( children: [ - Padding( - padding: const EdgeInsets.only(top: 5, right: 10), + Positioned( + right: 10, + top: 5, child: ImagePickerButton(cameraController: cameraController), ), - if (defaultTargetPlatform == TargetPlatform.iOS) const QRScanCancelButton(), + if (defaultTargetPlatform == TargetPlatform.iOS) ...[ + const Positioned( + bottom: 30.0, + right: 0, + left: 0, + child: QRScanCancelButton(), + ), + ] ], ), - ) + ), ], ), );