ff_drop_down_list 0.0.6
ff_drop_down_list: ^0.0.6 copied to clipboard
A customizable dropdown widget supporting single/multiple selection, integrated search in a bottom sheet, generic support for flexible, type-safe handling of custom data.
0.0.6 #
- Added
ListViewListenertoDropDownOptionsto listen toScrollNotifications from theListView. - Added
searchHoverColortoDropDownStyleto change the hover color of the search text field. - Added
submitButtonStyleandclearButtonStyletoDropDownStyleto customize the style of the buttons. - Added
selectAllButtonStyleanddeselectAllButtonChildtoDropDownStyleto customize the style of the buttons. - Added
searchHideSuffixWhenEmptytoDropDownStyle(andhideSuffixWhenEmptytoSearchTextField) to hide the suffix icon when the search field is empty.
0.0.5 #
- Added extension on
List<DropDownItem>(akaDropDownList) that allows for selection/deselection of items in the list. Also addedselectedandunselectedgetters to return subsets of the list depending on the selection status of theDropDownItem. - Added methods on
DropDownDatathat match new extension methods and apply it to both itsdataand itsfuturedata. - Added
select()anddeselect()methods toDropDownItem. DropDownItemnow implementsComparable(sorts bydata).- Added
DropDownOptions.sortAfterSearchoption to enable sorting.DropDownOptions.sortDelegateis still optional, as nowDropDownItem.compareTocan be used by default. - Moved default item builder to
DropDownItem.build. - Added
DropDownItemBuilderinterface to allow theTofDropDownItem<T>to determine the widget displayed in the drop down list. - Moved search logic to
DropDownItem.satisfiesSearchwhich is now called fromDropDownList.search. - Added
DropDownItemSearchableinterface to allow theTofDropDownItem<T>to determine the way items are searched. - Added
toStringmethod toDropDownItemto use forDropDownItem.buildandDropDownItem.satisfiesSearch. - Updated language example to showcase new customization abilities.
- Renamed some internal variables and utilized new
select/deselect/selectAll/deselectAllmethods. - List items are now disabled after the number of selected items hits
DropDownOptions.maxSelectedItems.DropDownOptions.onMaxSelectionReachedis now called as soon as the last item is selected. - Added
DropDownOptions.submitOnMaxSelectionReachedto automatically submit the drop down selection when the maximum number of selected items has been reached.
0.0.4 #
- Updated inline documentation.
- Added
DropDownResponseand nowDropDown.showreturnsFuture<DropDownResponse?>. - Added
DropDownDataand moved style builder toDropDownStyle. - Added asynchronous data support through
DropDownData.future().DropDownStylenow has options to display a data loading widget and a failure widget. - Added new constructors for
DropDown. - Updated README to reflect documentation changes.
- Updated basic example in README and removed outdated preview gifs.
- Renamed some of the type definitions and renamed the
listSortDelegateoption tosortDelegateto match thesearchDelegateoption.
0.0.3 #
- Fixed
Color.toARGB32()not working on Flutter 3.27.3 by adding an extension.
0.0.2 #
- Removed the default values for
searchFillColorandsearchCursorColor(now defaults tonull). - Added style option
listSeparatorColorto customize the default color of the list separator divider, which has been changed fromColors.black12toColors.transparent. - Added contextual color models
BrightnessColorandThemedColorto allow for contextually aware colors (see more). - Allow for all options to utilize new contextual color models.
- Changed
listSeparatorColordefault fromColors.transparenttoBrightnessColor.bwa(alpha: 0.08)and changedSearchTextFieldicon colors to be dependant on the brightness. - Added documentation for the
BrightnessColorandThemedColormodels. - Added
contextualizemethod forColorclass. - Added
ContextualColormodel and its documentation. - Added additional options to
SearchTextFieldto allow for custom icons and colors. Improved overall look and spacing of the search text field. - Moved
shapeBorderfromDropDownclass toDropDownOptionsasborder. Changed default to a rounded border of24.0instead of15.0. - Added new constructors and static helper methods to
SelectedListItemclass. - Added option to autofocus
SearchTextField. - Upgraded minimum Flutter SDK to 3.27.0.
0.0.1 #
- Initial creation of
ff_drop_down_listlibrary, forked fromdrop_down_listlibrary (MindInventory/drop_down_list). - Added
searchOnEmptyoption to allow thesearchDelegateto search on an empty query. - Added
listSortDelegateoption that will be called in the widgetinitState()as well as after every search. - Added
onMultipleSelectionandonSingleSelectioncallbacks. WhenenableMultipleSelectionistrue,onMultipleSelectionis called alongsideonSelection. Otherwise,onSelectionis called normally with theonSingleSelectionbeing called with a singleSelectedListItem(not a list). - Added
listSelectedTileColorto change the background color of selected items. - Restructured the drop down classes to allow for context-aware styling.
DropDownStyleandDropDownOptionsinstead ofDropDownfor options.DropDownis now used to launch the modal instead ofDropDownState. - Moved
SelectedListItemto the main library file to make usage easier. - Renamed style and option parameter names to improve clarity.
- Updated example project to reflect changes.
- Updated README to reflect changes.