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

Null safety not working without configuration. choiceGrouped fails. #16

Closed Bockos closed 2 years ago

Bockos commented 2 years ago

Hi,

Default selected value is now nullable and SmartSelect.multiple is not nullable. I'm not able to handle that, but I fixed this with doing like this. SmartSelect<String?>.multiple. Because if I dont, by default it shows this error;

image

Now the issue is fixed and it shows the modal by fixing those 2 lines too; List<String?> _car = []; onChange: (selected) => setState(() => _car = selected!.value!),

All is fine, but they all not working with choiceGrouped.

image

gongxh13 commented 2 years ago

I also find this problem, and want to know when to merge this bug into newest version?

absar commented 2 years ago

It's duplicate of https://github.com/akbarpulatov/flutter_awesome_select/issues/13

akbarpulatov commented 2 years ago

Issue is fixed on 834321de79dbb2b61befcfa8ddd97c90d2569c55