Skip to content

Commit 0c6693d

Browse files
committed
Fix tests, fix dialog not dismissing in default mode
1 parent 56eb7b0 commit 0c6693d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/src/views/disclosure_page.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ class _DisclosurePageState extends State<DisclosurePage>
272272
PermissionItemText permConfig,
273273
VoidCallback openSettings,
274274
) async {
275+
final navigator = Navigator.of(context);
275276
final dialogConfig = permConfig.forcedPermissionDialogConfig;
276277
final callback = widget.permissionConfig.showDialogCallback;
277278

@@ -291,7 +292,10 @@ class _DisclosurePageState extends State<DisclosurePage>
291292
),
292293
actions: [
293294
TextButton(
294-
onPressed: openSettings,
295+
onPressed: () {
296+
openSettings();
297+
navigator.pop();
298+
},
295299
child: Text(
296300
dialogConfig?.buttonText ?? '',
297301
),

0 commit comments

Comments
 (0)