Skip to content

Commit

Permalink
Fix alignment of overlay icons on QR Scan overlay (#90)
Browse files Browse the repository at this point in the history
fixes #73
  • Loading branch information
erdemyerebasmaz authored Jul 23, 2024
1 parent 971bd02 commit 8eed330
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions lib/routes/qr_scan/qr_scan.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,24 @@ class QRScanState extends State<QRScan> {
),
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(),
),
]
],
),
)
),
],
),
);
Expand Down

0 comments on commit 8eed330

Please sign in to comment.