akbarpulatov / flutter_awesome_select

Forked from https://github.com/davigmacode/flutter_smart_select, updated legacy code, migrated to null safety and more. AwesomeSelect allows you to easily convert your usual form select or dropdown into dynamic page, popup dialog, or sliding bottom sheet with various choices input such as radio, checkbox, switch, chips, or even custom input. Supports single and multiple choice.
https://pub.dev/packages/awesome_select
MIT License
48 stars 56 forks source link

List items are not refreshed when the items’ source e.g. a change notifier Provider sends an updated list #15

Closed absar closed 2 years ago

absar commented 2 years ago

List items are not refreshed when the items’ source e.g. a change notifier Provider sends an updated list. Rather the list disappears, or it does not refresh. Issue, lets try to add a new item to the list, before adding there were 3 items, check the list items at the end, the items disappear, instead it should show 4 items: --removed image

Doing the same activity with fixed version from PR https://github.com/akbarpulatov/flutter_awesome_select/pull/12, in the below example lets try to add a new item to the list, before adding there were 3 items, and after adding, the list shows 4 items: --removed image

akbarpulatov commented 2 years ago

Issue is fixed on 834321de79dbb2b61befcfa8ddd97c90d2569c55

absar commented 2 years ago

Issue is not fixed in the latest version, null safety is not going to fix the issue, rather you should merge the PR #12