[fix]: SettingsPickerDialog pop exception

This commit is contained in:
Ray
2023-12-27 00:35:00 +08:00
committed by Problematic Consumer
parent 5456245b0c
commit 13e2a18d1c

View File

@@ -155,7 +155,9 @@ class SettingsPickerDialog<T> extends HookConsumerWidget with PresLogger {
title: Text(getTitle(e)), title: Text(getTitle(e)),
value: e, value: e,
groupValue: selected, groupValue: selected,
onChanged: (value) => context.pop(e), onChanged: (value) async {
await Navigator.of(context).maybePop(e);
},
), ),
) )
.toList(), .toList(),