Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset settings from within a PrefPage does not reset all Pref Widgets #30

Open
bernd70 opened this issue Apr 15, 2023 · 2 comments
Open

Comments

@bernd70
Copy link
Contributor

bernd70 commented Apr 15, 2023

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

@DavBfr
Copy link
Owner

DavBfr commented Apr 15, 2023

Yes, this might be a bug.

@MrCsabaToth
Copy link
Contributor

Or can it be a UI state handling issue of the app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants