Skip to content

searching in the list not working #13

@mnarsely

Description

@mnarsely

Hello I am having an issue regarding searching in "SelectFormFieldType.dialog", I don't know if I have missed something but it seems like the search doesn't seem to work.

Here is my code:

List of items:

List<Map<String, dynamic>> _items = [ { 'value': '', 'label': 'Select Account', 'icon': Icon(Icons.account_balance) }, {'value': '', 'label': 'Account 1', 'icon': Icon(Icons.account_balance)}, {'value': '', 'label': 'Account 2', 'icon': Icon(Icons.account_balance)}, {'value': '', 'label': 'Account 3', 'icon': Icon(Icons.account_balance)} ];

Here is selectformfield:
SelectFormField( dialogCancelBtn: 'Cancel', enableSearch: true, dialogSearchHint: 'Search account', type: SelectFormFieldType.dialog, // or can be dialog icon: Icon(Icons.account_balance), labelText: 'Select Account', hintText: 'Select Account', items: _items, onChanged: (val) { print(val); }, )

Here is the screenshot of the list and output when searching item
Screenshot_1634376900
Screenshot_1634376922

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions