fix: inefficient ui flow of scan qr
This commit is contained in:
parent
d2c2284182
commit
e2d5602c7d
1 changed files with 8 additions and 2 deletions
|
|
@ -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(),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue