[fix]: SettingsPickerDialog pop exception
This commit is contained in:
committed by
Problematic Consumer
parent
5456245b0c
commit
13e2a18d1c
@@ -155,7 +155,9 @@ class SettingsPickerDialog<T> extends HookConsumerWidget with PresLogger {
|
||||
title: Text(getTitle(e)),
|
||||
value: e,
|
||||
groupValue: selected,
|
||||
onChanged: (value) => context.pop(e),
|
||||
onChanged: (value) async {
|
||||
await Navigator.of(context).maybePop(e);
|
||||
},
|
||||
),
|
||||
)
|
||||
.toList(),
|
||||
|
||||
Reference in New Issue
Block a user