Skip to content

Commit

Permalink
Fix safe area on qr code read page
Browse files Browse the repository at this point in the history
Applies breez/breezmobile#1220 changes

Co-Authored-By: Ademar <[email protected]>
  • Loading branch information
erdemyerebasmaz and ademar111190 committed Sep 27, 2023
1 parent 231cc1e commit eee834d
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions lib/routes/qr_scan/widgets/qr_scan.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,26 @@ class QRScanState extends State<QRScan> {
],
),
),
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(),
),
],
),
)
],
),
);
Expand Down

0 comments on commit eee834d

Please sign in to comment.