Describe the bug
When I try to instantiate a DropdownSearch widget in a page in my Flutter web app, several parameters of Dropdownsearch are undefined. I am using IntelliJ for Flutter development on Ubuntu 20.04. Here is a list of compile errors. These undefined parameters are also underlined in my code (but DropdownSearch and other params are not). It is very odd to me.
The named parameter 'mode' isn't defined.
The await expression can only be used in an async function.
The named parameter 'showSearchBox' isn't defined.
The named parameter 'searchFieldDecorator' isn't defined.
The named parameter 'dropdownButtonBuilder' isn't defined.
The named parameter 'popupItemBuilder' isn't defined.
This app compiles and otherwise runs fine without the DropdownSearch widget.
To Reproduce
I added this line to my public.yaml
dropdown_search: ^5.0.6
And I am attempted to use this code in a widget build method:
Describe the bug When I try to instantiate a DropdownSearch widget in a page in my Flutter web app, several parameters of Dropdownsearch are undefined. I am using IntelliJ for Flutter development on Ubuntu 20.04. Here is a list of compile errors. These undefined parameters are also underlined in my code (but DropdownSearch and other params are not). It is very odd to me.
The named parameter 'mode' isn't defined. The await expression can only be used in an async function. The named parameter 'showSearchBox' isn't defined. The named parameter 'searchFieldDecorator' isn't defined. The named parameter 'dropdownButtonBuilder' isn't defined. The named parameter 'popupItemBuilder' isn't defined.
This app compiles and otherwise runs fine without the DropdownSearch widget.
To Reproduce I added this line to my public.yaml dropdown_search: ^5.0.6
And I am attempted to use this code in a widget build method:
Expected behavior I don't expect to see these errors.
Screenshots![Screenshot from 2024-04-25 22-25-51](https://github.com/salim-lachdhaf/searchable_dropdown/assets/33675736/0c55ef16-7ca6-4f58-899a-ba6764857858)
Dev environment
For web development: