mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 16:32:01 +03:00
use only Widget's BuildContext
This commit is contained in:
parent
71d9b5b598
commit
e2ba4dbb3d
@ -163,7 +163,6 @@ class _QrScannerViewState extends State<QrScannerView> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
BuildContext dialogContext = NavigationService.navigatorKey.currentContext!;
|
||||
return SafeArea(
|
||||
child: Scaffold(
|
||||
appBar: AppBar(
|
||||
@ -218,7 +217,7 @@ class _QrScannerViewState extends State<QrScannerView> {
|
||||
MaterialButton(
|
||||
color: Colors.white38,
|
||||
onPressed: () {
|
||||
Navigator.of(dialogContext).pop('');
|
||||
Navigator.of(context).pop('');
|
||||
},
|
||||
child: const Text('Add manually'),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user