flutter_pref
flutter_pref copied to clipboard
Reset settings from within a PrefPage does not reset all Pref Widgets
For beta testing reasons I did implement a "reset configuration" PrefButton and implemented it in a "Support" child PrefPage.
The reset function calls
var prefService = Get.find<PrefServiceShared>();
await prefService.set(<Id>, <DefaultValue>);
...
setState(() {});
This resets the settings but strangely the PrefText() elements in the root PrefPage are not cleared. If i switch to another page and then back to settings, the field is empty. The PrefDropdown fields on the other hand are reset to the default values.
Is this a bug or am I doing something wrong?
Bernd
Yes, this might be a bug.
Or can it be a UI state handling issue of the app?