NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #1580 most downloaded on pub.dev
A flexible multi select package for Flutter. Make multi select widgets the way you want.
Last release 4 years ago
no release in 18 months
Ships unpredictably
gaps range from 9 days to 12 months
Nearly every release is documented
notes for 30 of 30 stable releases
1 version withdrawn
withdrawn after publishing
6 years old
31 releases · first in 2020
One column per quarter.
add didUpdateWidget that sets the selected items if initialValue changed
Merged PR #87. Thanks @benyaminbeyzaie
Created a bug in 4.0.0 by removing the 'collection' dependency. It's only used to call firstWhereOrNull in _buildInheritedChipDisplay in both MultiSel
BREAKING: re-named the 'width' and 'height' fields to dialogWidth and dialogHeight.
Added null safety. Thanks to @ihancock for taking the initiative to apply this.
Slow with big list. Using a ListView.builder solves this but haven't found a way to use ListView.builder when the listType is set to MultiSelectListTy
MultiSelectListType.CHIP.title param type from Text to Widget
<V> on MultiSelectChipDisplay declarations
This would cause a type error if you were to specify the type of a MultiSelectChipDisplay that's part of a MultiSelectDialogField or MultiSelectBottomSheetField.
MultiSelectBottomSheetField(
onConfirm: (values) {
_selectedAnimals = values;
},
items: _items,
chipDisplay: MultiSelectChipDisplay<Animal>( // supplying the runtime type here will cause error
onTap: (item) {
_selectedAnimals.remove(item);
return _selectedAnimals;
},
),
)
The type being supplied plus returning a List<Animal> would mean that the onTap function is now List<Animal> Function(Animal)
However, since the declaration of the chipDisplay was missing the type (ex. MultiSelectChipDisplay chipDisplay;), it is expecting onTap to be
dynamic Function(dynamic).
Autofocus search textfield when search icon is tapped.
### Fixed - Readme tables
A constructor MultiSelectChipDisplay.none() which disables the default chipDisplay that is part of MultiSelectDialogField and MultiSelectBottomSheetFi
param chipWidth for MultiSelectChipDisplay and MultiSelectChipField. When this is set, overflowing text will show ellipses.
chipWidth for MultiSelectChipDisplay and MultiSelectChipField. When this is set, overflowing text will show ellipses.param scroll, scrollBar, height for MultiSelectChipDisplay.
scroll, scrollBar, height for MultiSelectChipDisplay.param showHeader for MultiSelectChipField allowing it to be completely removed if so desired.
showHeader for MultiSelectChipField allowing it to be completely removed if so desired.BREAKING: Replace deprecated autovalidate with autovalidateMode on FormField widgets
type Color is not a subtype of type bool when selecting item in MultiSelectBottomSheet
widget.selectedColor ?? widget.var != null ? widget.var.func() : widget.otherVar.initialValue is set
checkColor for dialog and bottomsheet widgets.chipColor with unselectedColor for dialog and bottomsheet widgets. Apply the color to unselected checkbox border or the
unselected chip body depending which listType is used.autovalidate with autovalidateMode on FormField widgetstype List is not a subtype of type bool when using chipDisplay param on MultiSelectBottomSheet.
type List<dynamic> is not a subtype of type bool when using chipDisplay param on MultiSelectBottomSheet.Similar to MultiSelectChipDisplay except that it is the primary interface to select items
chipDisplay.
chipDisplay param to have a MultiSelectChipDisplay, a MultiSelectDialogField with only items specified is enough.items on MultiSelectChipDisplay when using it as a chipDisplay paramAn error was being produced when using the icon param in MultiSelectChipDisplay with no colorator applied.
icon param in MultiSelectChipDisplay with no colorator applied.title is provided in MultiSelectDialogField, default title of Text("Select") should be provided, not a String of "Select"chipOpacity from MultiSelectDialog and MultiSelectBottomSheet widgets.
selectedItemsTextStyle that applies to dialog / bottomsheet, list and chip.A number of parameters that allow more customizations.
A number of parameters that allow more customizations.
backgroundColorchipColorchipOpacitysearchIcon, closeSearchIconitemsTextStyle, searchTextStyle, searchHintStyleicon and shape for MultiSelectChipDisplayWhen colorator is applied to Field or FormField, apply the same colorator to the chipDisplay if there is one. Previously, when using a MultiSelectDial
colorator param for all widgets. Set the color of individual items based on their value.
colorator param for all widgets. Set the color of individual items based on their value.
opacity param for MultiSelectChipDisplaychipColor param now automatically sets the opacity to 0.33 and sets the text to the same color but with full opacity.
Colors.blue.withOpacity(0.33)
and textStyle to TextStyle(Colors.blue) to achieve this simple look.textStyle paramopacity paramselectedColor if there is oneselectedColor if there is oneparameter searchPlaceholder to replace the default "Search" text.
searchPlaceholder to replace the default "Search" text.selectedColor wasn't being passed to MultiSelectDialog when using MultiSelectDialogField or MultiSelectDialogFormField### Added - dartdoc comments
selectedColor param which controls the color of the selected checkbox / chips within a dialog / bottomsheet
selectedColor param which controls the color of the selected checkbox / chips within a dialog / bottomsheetheight param to MultiSelectDialog widgets.MultiSelectBottomSheet, MultiSelectBottomSheetField, MultiSelectBottomSheetFormField
MultiSelectBottomSheet, MultiSelectBottomSheetField, MultiSelectBottomSheetFormFieldbarrierColor param to MultiSelectDialogImplement scrolling in MultiSelectChipDialog.
title is no longer required for List / Chip dialogs, default to "Select".initialSelectedItems is now required for List / Chip dialogs.items is now required for MultiSelectChipDisplay.state as a parameter of MultiSelectField and created a constructor MultiSelectField.withState() that gets called by MultiSelectFormField.
state never needs to be set by the user, and would do nothing if set explicitly, so it shouldn't be a named param on the default constructor.A bug was introduced in version 1.0.4 that caused the MultiSelectFormField to not highlight any of the selected values in the dialog.
Allow user to set initial selected values for MultiSelectField and MultiSelectFormField by adding param 'initialValue' to MultiSelectField, and enable
Updated pubspec.yaml project description and added homepage link
### Added - Example project - analysis_options.yaml
Example project
analysis_options.yaml
### Changed - Added readme
Creation of MultiSelect package
Creation of MultiSelect package
Widgets include MultiSelectListDialog, MultiSelectChipDialog, MultiSelectChipDisplay, MultiSelectField, MultiSelectFormField.
Your coding agent can read these notes before it upgrades. Set up the MCP server →