Skip to content

Commit

Permalink
fix: inefficient ui flow of scan qr
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruv80576 committed Nov 7, 2024
1 parent d2c2284 commit e2d5602
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/pages/new_private_chat/new_private_chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,14 @@ class NewPrivateChatController extends State<NewPrivateChat> {
}
await showAdaptiveBottomSheet(
context: context,
builder: (_) => QrScannerModal(
onScan: (link) => UrlLauncher(context, link).openMatrixToUrl(),
builder: (_) => WillPopScope(
onWillPop: () async {
Navigator.of(context).pop();
return false;
},
child: QrScannerModal(
onScan: (link) => UrlLauncher(context, link).openMatrixToUrl(),
),
),
);
}
Expand Down

0 comments on commit e2d5602

Please sign in to comment.