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

best way to search objects with this package ? #4

Closed
thorizer opened this issue Jun 6, 2022 · 1 comment
Closed

best way to search objects with this package ? #4

thorizer opened this issue Jun 6, 2022 · 1 comment

Comments

@thorizer
Copy link

thorizer commented Jun 6, 2022

can this package handle searching objects ?
for example dropdown_search package have this

DropdownSearch<UserModel>(
    itemAsString: (UserModel u) => u.userAsStringById(),
    onChanged: (UserModel? data) => print(data),
    dropdownSearchDecoration: InputDecoration(labelText: "User by id"),
)

I have a list of items that can have duplicate names, i want the value to be the id and the label to be the name
best DropDown in pubDev, only lacks searching through objects

@deep-mindinventory
Copy link
Contributor

@thorizer please check latest version where we have added object with name and value which fulfilled for duplicate name. It is also returning object on selection.

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

2 participants