artflutter / 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/flutter_awesome_select
MIT License
15 stars 30 forks source link

Chip delete keep standing in UI #2

Closed Bockos closed 2 years ago

Bockos commented 2 years ago

Hi,

The delete property in the "S2Tile.fromState > body" section is working but the selected property keep standing in the screen. I mean it works in backend, but UI does not change. How can I fix that problem? Please consider the picture below.

When I check your examples, it also occurs in there.

My delete code; chipOnDelete: (i) { setState(() => groupedBusinessListSelected .remove(state.selected!.choice![i].value));

image

vasilich6107 commented 2 years ago

Hi @Bockos did you check the example project? Do you see the same error there?

Bockos commented 2 years ago

Hello @vasilich6107,

Yes, unfortunately the same error also exist in your example. You can refer "Customize Modal > Choice Selector > Phones" example. Try to delete selected value and u will see it will keep standing.

vasilich6107 commented 2 years ago

Thanks @Bockos I will check

Bockos commented 2 years ago

@vasilich6107 did u check? Let me know if the new version will release or not in nowadays?

Thanks

vasilich6107 commented 2 years ago

Hi @Bockos i did check The bug definitely exists If I fill not fix it today - I will make another atempt in 10 day due to vacation

vasilich6107 commented 2 years ago

@Bockos check flutter_awesome_select 6.0.1

Bockos commented 2 years ago

Excellent job @vasilich6107 Works fine! thanks.