update new_private_chat.dart

This commit is contained in:
Dhruv80576 2024-11-07 18:39:30 +05:30
parent e2d5602c7d
commit e57684d3ed

View file

@ -83,10 +83,9 @@ class NewPrivateChatController extends State<NewPrivateChat> {
}
await showAdaptiveBottomSheet(
context: context,
builder: (_) => WillPopScope(
onWillPop: () async {
builder: (_) => PopScope(
onPopInvokedWithResult:(didPop, result) {
Navigator.of(context).pop();
return false;
},
child: QrScannerModal(
onScan: (link) => UrlLauncher(context, link).openMatrixToUrl(),