hiddencaliber / flutter_multiselect

Flutter package for multi-select UI widget
Other
52 stars 37 forks source link

[Issue] Button Save not enabling after update to 1.0.0 #35

Open lcsvcn opened 3 years ago

lcsvcn commented 3 years ago
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....

hiddencaliber commented 3 years ago

@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

lcsvcn commented 3 years ago

Thank you!

iamsaikat commented 3 years ago

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.

mahammadali-dodiya commented 2 years ago

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.