fix: inefficient ui flow of scan qr

This commit is contained in:
Dhruv80576 2024-11-07 17:21:37 +05:30
parent d2c2284182
commit e2d5602c7d

View file

@ -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(),
),
),
);
}