Skip to content

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

Description

@bernd70

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions