We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56eb7b0 commit 0c6693dCopy full SHA for 0c6693d
lib/src/views/disclosure_page.dart
@@ -272,6 +272,7 @@ class _DisclosurePageState extends State<DisclosurePage>
272
PermissionItemText permConfig,
273
VoidCallback openSettings,
274
) async {
275
+ final navigator = Navigator.of(context);
276
final dialogConfig = permConfig.forcedPermissionDialogConfig;
277
final callback = widget.permissionConfig.showDialogCallback;
278
@@ -291,7 +292,10 @@ class _DisclosurePageState extends State<DisclosurePage>
291
292
),
293
actions: [
294
TextButton(
- onPressed: openSettings,
295
+ onPressed: () {
296
+ openSettings();
297
+ navigator.pop();
298
+ },
299
child: Text(
300
dialogConfig?.buttonText ?? '',
301
0 commit comments