Skip to content

Request: Error Message, when pref not found in default values #40

@Mercutio1243

Description

@Mercutio1243

Preface: I am relatively new to flutter.

It took me some time to find out why my setting pages was freezing without any comment or error: the identifier I provided in "prefs:" was not the same as defined in the "defaults", used in setting up final service = await PrefServiceShared.init(defaults: ...)

Since this might be a quite common mistake, a small error message might be helpful.

Edit: It might also be that the freeze came due to some information provided in default not being the appropriate variable type.

        PrefDropdown<String>(
          title: Text('Analysis time'),
          pref: 'identifier1',
          items: [
            DropdownMenuItem(value: '500', child: Text('500 ms')),
            DropdownMenuItem(value: '750', child: Text('750 ms')),
            DropdownMenuItem(value: '1000', child: Text('1000 ms')),
          ],
        ),

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