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
I am using dropdown searchable but searchable is list is come from network call #104
Comments
I don't know what exactly is the issue here. |
Trying to make searchable dropdown but dropdown is list but that list is search from api call |
Below simplified version of source code Main widget which one used for main Page of UI
|
Is your issue that the dropdown menu items don't update when you call api? |
Yes after api call that not update & selected item i have customized changing background color and right tick mark that also automatically deselect |
Currently updating an open Dropdown Menu is not fully supported but there's a hacky solution for this as described here #101 |
Actually this one tried but not working |
Are you currently able to update the menu when its open? |
yes |
Main problem is selected items not refresh |
|
yes actually did this but when two to three time open close dropdown it will be automatically deselect |
** Please keep in mind i am using like reusable widget like multiple instance |
I'm not sure why this is happening so I need to test your code. |
latest one shared that have no different dependencies |
Actually it has dependencies. |
Open new flutter project and try to let your sample code work on it so I can test it too. |
Okay sending you with open create new flutter project and adding all on that |
Full example added please check
|
This can be tested, Thanks! |
Here you're doing
You need to clone the list in initState instead of copying the object reference:
Another thing is as you're using the default
|
As this is unrelated to the package, I'll close it. |
Passing selected items as a constructor but it will be not working. Normal situation it will be work. When we make this one as a reusable widget then it will be not work selected value is not setted.
Below sample code added
The text was updated successfully, but these errors were encountered: