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

Group header can not use #18

Closed gongxh13 closed 2 years ago

gongxh13 commented 2 years ago

When set groupEnabled: true,, throw below exception:

The following _CastError was thrown building S2GroupHeader(dirty):
type 'List<Widget?>' is not a subtype of type 'List<Widget>' in type cast

The relevant error-causing widget was: 
  GetMaterialApp GetMaterialApp:file:///C:/Users/dell/Desktop/gongxhfile/reliser/lechat/lib/main.dart:40:22
When the exception was thrown, this was the stack: 
#0      S2GroupHeader.build (package:awesome_select/src/group_header.dart:37:43)

The error code is in group_header.dart: image

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