From 4acb084d9a1d84c276244bed489e8282972a267b Mon Sep 17 00:00:00 2001 From: Ademar Alves de Oliveira Date: Tue, 26 Sep 2023 11:41:52 -0300 Subject: [PATCH] Fix safe area on qr code read page --- lib/routes/qr_scan.dart | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/lib/routes/qr_scan.dart b/lib/routes/qr_scan.dart index 9790067e8..a108bd1cc 100644 --- a/lib/routes/qr_scan.dart +++ b/lib/routes/qr_scan.dart @@ -62,20 +62,26 @@ class QRScanState extends State { ], ), ), - Positioned( - right: 10, - top: 5, - child: ImagePickerButton(cameraController), - ), - Positioned( - bottom: 30.0, - right: 0, - left: 0, - child: defaultTargetPlatform == TargetPlatform.iOS - ? const QRScanCancelButton() - : const SizedBox(), - ), const ScanOverlay(), + SafeArea( + child: Stack( + children: [ + Positioned( + right: 10, + top: 5, + child: ImagePickerButton(cameraController), + ), + Positioned( + bottom: 30.0, + right: 0, + left: 0, + child: defaultTargetPlatform == TargetPlatform.iOS + ? const QRScanCancelButton() + : const SizedBox(), + ), + ], + ), + ), ], ), );