crawlinknetworks / dropdown_plus

Simple and easy to use Dropdown in forms with search, keyboard navigation, offiline data source, remote data source and easy customization.
MIT License
12 stars 43 forks source link

Can I make a DropdownFormField<MyClass> ? #5

Open guerramatias1409 opened 3 years ago

guerramatias1409 commented 3 years ago

I'm trying to make a dropdown to filter items of a custom class, but I get this error in the displayItemFn method 'type '(MyClass?) => Text' is not a subtype of type '(dynamic) => Widget''

sramac2 commented 2 years ago

I too faced the same error. Though I specify the type of my list, it asks me to provide it as dynamic.