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
For beta testing reasons I did implement a "reset configuration" PrefButton and implemented it in a "Support" child PrefPage.
The reset function calls
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