This commit is contained in:
Dhruv Agrawal 2026-03-16 05:24:18 +00:00 committed by GitHub
commit 30ebb3c81d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,8 +95,14 @@ class NewPrivateChatController extends State<NewPrivateChat> {
}
await showAdaptiveBottomSheet(
context: context,
builder: (_) => QrScannerModal(
onScan: (link) => UrlLauncher(context, link).openMatrixToUrl(),
builder: (_) => PopScope(
canPop: false,
onPopInvokedWithResult: (didPop, result) {
Navigator.of(context).pop();
},
child: QrScannerModal(
onScan: (link) => UrlLauncher(context, link).openMatrixToUrl(),
),
),
);
}