fl_select 0.7.0
fl_select: ^0.7.0 copied to clipboard
A Flutter package for creating a select widget.
0.7.0 #
-
BREAKING make
PopupSelectBar.selectDelegatesrequired — it is now a non-nullableList<SelectDelegate>and must be provided toPopupSelectBar.PopupSelectBar.onAppliedis likewise now required (PopupSelectBarResultCallback, non-nullable). Update call sites that previously omitted either parameter to pass them explicitly. -
BREAKING make
PopupSelectButton.selectDelegaterequired — it is now a non-nullableSelectDelegateand must be provided to everyPopupSelectButtonconstructor.PopupSelectButton.onAppliedis likewise now required (PopupSelectButtonResultCallback, non-nullable). Update call sites that previously omitted either parameter to pass them explicitly. -
BREAKING make
SelectDelegate.entriesLoaderrequired — it is now a non-nullableFuture<SelectEntries> Function()and must be provided by every delegate.SelectView.onChangedis likewise now required (SelectCallback, non-nullable). Update call sites that previously omitted either parameter to pass them explicitly. -
BREAKING remove all deprecated aliases, parameters, getters and methods introduced in 0.5.0 by the
Select*/PopupSelect*renaming. This includes: theSelector*Entry*/SelectorEntriesaliases,SelectorBox,showSelector,showModalBottomSelector,SelectorTheme/SelectorThemeData,SelectorPanelTheme,SelectorDelegate/CascadingSelectorDelegate/ListSelectorDelegate/GridSelectorDelegate/FlattenSelectorDelegate,SelectorController/SelectorControllerProvider,SelectorCallback,SelectorLayout/SelectorListLayout/SelectorGridLayout/SelectorChipLayout/SelectorRangeLayout,SelectorLocalizations/SelectorLocalizationsDelegate,SelectorLabelLoader/SelectorLabelState,DropdownOverlayStyle,kSelectorListTileHeight, theDropdownSelector*→PopupSelect*aliases (DropdownSelectorBar,DropdownTab,DropdownSelectController,DropdownTabData,DropdownSelectControllerProvider,DropdownSelectorBarTheme,DropdownSelectorButton,DropdownSelectorButtonTheme,DropdownSelectorButtonVariant,DropdownSelectorButtonResultCallback,DropdownSelectorButtonWillToggleCallback,kDropdownSelectorButtonHeight,DropdownSelectorDirection), and theselectorDelegates/selectorTheme/selectorDelegateparameters and getters,previousSelectorDelegate,selectorControllerandattachSelectorDelegatesmembers. Use theSelect*/PopupSelect*names instead; see the Migration guide for the full old → new tables. -
DEPRECATION rename the selector lifecycle callbacks on
PopupSelectBarandPopupSelectButton—onSelectorShowed/onSelectorHidden/onSelectorWillShow/onSelectorWillHide→onSelectShowed/onSelectHidden/onSelectWillShow/onSelectWillHide. The old names are retained as deprecated constructor parameters and getters that delegate to the new names (passing both at the same call site triggers an assertion) and will be removed in a future minor version. -
DEPRECATION rename
PopupSelectController.hideSelector→hideSelect,toggleSelector→toggleSelect, andisSelectorShowing→isSelectShowingto drop the redundantSelectorwording. The old names are retained as deprecated methods / getters that delegate to the new names and will be removed in a future minor version. -
FEATURE
FlattenSelectnow consumesSelectCategoryEntry.layoutvia an exhaustiveswitch (layout), matching the behavior already present inListSelect/GridSelect. Each category's right-side content renders as aSelectListView,SelectGridView,SelectChipBar,SelectRangeView, orSelectCounterdepending on its layout, with the grid/list/counter/range layout-specific parameters (crossAxisCount, spacing,childAspectRatio,toText, etc.) and the delegate theme overrides (grid/field/chip) honored. Whenlayoutis null, it falls back to the grid using the widget's owncrossAxisCount/mainAxisSpacing/crossAxisSpacing/childAspectRatio, so existing default behavior is unchanged.