Mindinventory / drop_down_list

Highly versatile Widget to search through a single or multiple choices from bottom sheet list in a dialog box or a menu.
https://www.mindinventory.com/flutter-app-development.php
MIT License
86 stars 34 forks source link

best way to search objects with this package ? #4

Closed thorizer closed 2 years ago

thorizer commented 2 years ago

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 commented 2 years ago

@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.