Open absar opened 2 years ago
Hi @absar I released a fresh beta version with improved null safety support Could you provide a code that reproduces the issue so I can create a unit test to cover this issue?
Sure I will try create a simple reproducible code, when I have some time.
Hi @vasilich6107 Finally found some time to create a simple reproducible code, though it took much more time than fixing the real issue. Anyways, copy the code, make sure to add provider dependency, then follow the instructions in the App. If you run it with this repository you will see the issues in the App but if you run it with my Git repository it should work fine
To run it with my repo change pubspec.yaml:
flutter_awesome_select:
git:
url: https://github.com/absar/flutter_awesome_select.git
path: ./
Thanks @absar
Lately, I'm also facing the same issue with the package. @absar if you have fixed it, would you please send a PR to this repo?
I actually sent PRs twice in 2021 but were not merged, sent a new one based on latest release, hope it gets merged
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, try to select Crypto, it should show the list of cryptos but nothing will happen, then open settings and try to delete an item from the list, before deleting there were 2 items, after deleting there is one item in the settings but there are still two items in SmartSelect as you can see at the end of the Gif, instead it should show just 1 item:![IssueLoop](https://user-images.githubusercontent.com/1186833/174406889-15938893-d4be-40a1-b993-338e78ce7e8b.gif)
Doing the same activity with fixed version from PR #5 , in the below example you can do both select Crypto and deleting item in the settings will correctly update the list in SmartSelect:![FixedLoop](https://user-images.githubusercontent.com/1186833/174406909-771bcfd2-e7a4-4501-a10d-293999d2d582.gif)