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

How to add onChanged to DropDownlist? crash happening in dropdown #119

Closed
neenabastin123 opened this issue Aug 24, 2019 · 1 comment
Closed

Comments

@neenabastin123
Copy link

I/flutter ( 5339): 'package:flutter/src/material/dropdown.dart': Failed assertion: line 608 pos 15: 'items == null ||
I/flutter ( 5339): items.isEmpty || value == null || items.where((DropdownMenuItem item) => item.value ==
I/flutter ( 5339): value).length == 1': is not true.

@danvick
Copy link
Collaborator

danvick commented Aug 29, 2019

Hi @neenabastin123 / @dhsont,
This assertion is not part of the package, rather in Flutter. This shows that your initial value for the Dropdown is not part of the list of options you've provided as DropdownMenuItems.

Feel free to reopen this issue if you feel that this issue has been wrongly closed.

@danvick danvick closed this as completed Aug 29, 2019
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