flutter_multiselect icon indicating copy to clipboard operation
flutter_multiselect copied to clipboard

[Issue] Button Save not enabling after update to 1.0.0

Open lcsvcn opened this issue 4 years ago • 4 comments

MultiSelect(
      titleText: 'Select The Options!',
      validator: (value) {
        if (value == null) {
          return 'Please select one or more option(s)';
        }
        return 'Loading...';
      },
      errorText: 'Please select one or more option(s)',
      dataSource: _getDataSource,
      textField: 'display',
      valueField: 'value',
      filterable: true,
      required: true,
      value: null,
      change: _onChange,
      saveButtonColor: Theme.of(context).primaryColor,
      saveButtonText: 'OK',
      clearButtonColor: Colors.yellowAccent[700],
      clearButtonIcon: FontAwesome.trash,
      clearButtonTextColor: Colors.black,
      cancelButtonColor: Colors.red[800],
      cancelButtonTextColor: Colors.white,
      cancelButtonIcon: FontAwesome.times,
      selectIcon: Icons.arrow_drop_down_circle,
      saveButtonIcon: FontAwesome.check,
      enabledBorderColor: Colors.blue,
    );
  }

Screenshot from 2021-07-01 14-57-05

Should be nice to have a migration tutorial from non null-safety to null-safety version....

lcsvcn avatar Jul 01 '21 18:07 lcsvcn

@lcsvcn : I see the problem. For now please pass maxLength. Even though it should be optional, seems like you have to pass it. I will fix this minor bug soon. Thanks for reporting

hiddencaliber avatar Jul 03 '21 01:07 hiddencaliber

Thank you!

lcsvcn avatar Jul 03 '21 17:07 lcsvcn

I got the same issue after migrating my old project to new version. Fixed by passing maxLength for now. Hope it will fix soon and thanks for the contribution.

iamsaikat avatar Sep 04 '21 07:09 iamsaikat

I got the same issue after migrating my old project to new version. set maxLengthText = " "; maxLength= ; Hope it will fix soon and thanks for the contribution.

mahammadali-dodiya avatar Sep 05 '22 06:09 mahammadali-dodiya