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

Problem with groupEnabled on null-safety application #13

Closed DonWasyl closed 2 years ago

DonWasyl commented 2 years ago

Hello, I noticed a problem with displaying list when I use groupEnabled on application with null-safety. When we try open list on app with null-safety (sdk: ">=2.12.0 <3.0.0") we get the error: type 'List<Widget?>' is not a subtype of type 'List<Widget>' in type cast

Example app works because it is built without null-safety.

I made a simple fix for that, maybe isn't perfect, but it works.

https://github.com/akbarpulatov/flutter_awesome_select/pull/14

akbarpulatov commented 2 years ago

Issue is fixed on 834321de79dbb2b61befcfa8ddd97c90d2569c55

akbarpulatov commented 2 years ago

it is on version 5.1.0

akbarpulatov commented 2 years ago

Feel free to open an issue again if you have.