-
-
Add adaptive platform Ui feature:
Material,CupertinoandAdaptive -
Add
autocompletenew popup mode -
add
transitionBuilder,transitionDuration,reverseTransitionDurationtomenuPropstransitionDuration: Duration(milliseconds: 500), transitionBuilder: (context, animation, secondaryAnimation, child) { return SlideTransition( position: Tween<Offset>( begin: const Offset(1, 0), end: Offset.zero, ).animate(animation), child: child, ); }
-
add new property
animationBuildertoDropdownButtonProps, examples of uses
/* Example 1: animation with only one icon ("iconClosed") like rotation */ animationBuilder: (child, isOpen) { return AnimatedRotation( turns: isOpen ? .5 : 0, duration: Duration(milliseconds: 400), child: child, ); }
/* Example 2 : animation with two icons like switch */ dropdownButtonProps: DropdownButtonProps( iconClosed: Icon(Icons.arrow_drop_down), iconOpened: Icon(Icons.arrow_drop_up), animationBuilder: (child, isOpen) { return AnimatedSwitcher( switchOutCurve: Curves.easeIn, switchInCurve: Curves.easeIn, duration: Duration(milliseconds: 400), child: child, ); }, )
-
add new property
layoutDelegatetoMenuPropsandCupertinoMenuProps, you can extendSingleChildLayoutDelegateto create your own positioning strategyexample of use
layoutDelegate: (context, padding, position) => _PopupMenuRouteLayout(context, position) class _PopupMenuRouteLayout extends SingleChildLayoutDelegate { final RelativeRect position; final BuildContext context; const _PopupMenuRouteLayout(this.context, this.position); @override BoxConstraints getConstraintsForChild(BoxConstraints constraints) { // pick any properties from the context to calculate proper constraints final mediaQuery = MediaQuery.of(context); final keyBoardHeight = mediaQuery.viewInsets.bottom; final safeArea = mediaQuery.padding; return BoxConstraints(/* calculate new constraints based on your needs */); } @override Offset getPositionForChild(Size size, Size childSize) { // The position where the child should be placed. } @override bool shouldRelayout(covariant SingleChildLayoutDelegate oldDelegate) => false; }
-
add
SuggestionsPropstopopupProps -
add
builderproperty forSuggestionsPropsto override the hole suggestion widget -
add properties to
scrollViewandwrapwidget for selected items in multiSelection mode -
Chipsare fully customizable in multiSelection and suggestions -
replace
paddinginsearchFieldPropswithcontainerBuilder -
add
onDisplayedcallback topopupProps -
add
errorBuilderforInfiniteScrollProps -
add possibility to reload item using
myGlobalKey.currentState?.reloadItems(String filter)ormyGlobalKey.currentState?.loadMoreItems(String filter, int skip)
-
-
- change
onChangedtoonSelected PopupPropsMultiSelectionchanged toMultiSelectionPopupPropssuggestedItemsPropsis placed insideSuggestionsPropsSemanticsis removed from searchBox, to add it usecontainerBuilderlike this you have full access to Semantic properties.
- change
-
BottomSheetbackground color 726
-
- add
Semanticsto searchBox to support voiceOver/TalkBack ...
- add
-
- infinite list / lazy loading
- add click properties to the dropdown
- add custom mode
- dropdown button can be changed depending on state (opened/closed)
- add property
cacheItemsfor popupProps - add property
onItemLoaded - adding new properties for a lot of widget (scrollBar, modal, bottomSheet,...)
- add to possibility to change position of
clearButtonanddropdownButtonusingdirectionproperty
-
AsyncItemsanditemsare replaced byitems:(filter, infiniteScrollProps)- Add
isDisabledtoitemBuilderparams FavoriteItemsrenamed toSuggestedItemsisFilterOnlinerenamed todisableFilterselectionWidgetrenamed tocheckBoxBuilderdropdownDecoratorPropsrenamed todecoratorPropsclearButtonPropsanddropdownButtonPropsare placed tosuffixProps
-
Fix bugs
-
fix lint errors
-
add 'textDirection' in multiSelection mode to handle checkbox alignment
-
add useSafeArea for modal
-
Fix analysis warning and formatting issues
- Fix bugs: 510, 439, 513, 514
- add new properties to dropdownButton and clearDropdownButton: 'style', 'isSelected', ' selectedIcon', 'onPressed'
- Fix bugs
- update Readme file
- add
interceptCallBacksfor popupProps
- Fix code format
- Replace ScrollBar with RawScrollBar (adding new properties)
- move
showClearButtonintoClearButtonProps - move all dropdownDecoration props into
dropdownDecoratorProps - replace
IconButtonPropswith DropdownButtonProps andClearButtonPropsforclearButtonPropsand dropdownButtonProps - add a full custom container for the pop
containerBuildertopopup_props - add
isVisibleprop toDropdownButtonProps - change
validationMultiSelectionWidgettovalidationWidgetBuilder
- fix fit issue in single Selection mode
- fix isOnlineFilter issue
-
Breaking changes:
- onFind to AsyncItem
- isFilteredOnline to isFilterOnline
- replace all popup customization with popupProps
- change default mode to MENU
- remove 'dropdownBuilderSupportsNullItem' because now we support nullSafety
- remove safeArea settings, the popup should always shown in safeArea
-
update readme.md
-
improve menu mode
-
improve dialog mode
-
fix large text in chips in multiSelection mode
-
fix bug 84
-
add new mode BOTTOM_SHEET
-
support Flutter v3
- breaking changes:
- remove
hintandlabelproperties, usedropdownSearchDecorationinstead - remove
showAsSuffixIconsproperty, now always are as suffixIcon - replace '
clearButtonSplashRadius' and 'clearButtonBuilder' into one property 'IconButtonProps' - replace '
dropdownButtonSplashRadius' and 'dropdownButtonBuilder' into one property 'IconButtonProps'
- remove
- fix issue 380
- improve performance
- add "popupCustomMultiSelectionWidget" option
- fix bug 284
- breaking changes
- add "isSelected" option to FavoriteItemsBuilder
- change onChange to onChanged in multiSelection mode
- fix some bugs
- new feature : change searchBox query programmatically using EditTextController
- fix some bugs
- new feature : multiSelection mode
- breaking changes :
-
searchBoxDecoration removed: replaced by searchFieldProps _ autoFocusSearchBox removed : replaced by searchFieldProps _ searchBoxStyle removed : replaced by searchFieldProps _ searchBoxController removed : replaced by searchFieldProps
- showSelectedItem replaced by showSelectedItems
-
- fix analyser issues
- prop that passes all props to search field
- fix issues 169
- fix issues 163
- new Feature "dropdown BaseStyle" 178
- new Feature "popup scrollView"
- Ignore pointers in itemBuilder & cursor in web
- Added property to customize DropdownButton Splash Radius
- added property to set up the splash radius for clear button and for dropdown button in dropdown_search
- @thanks Vasiliy
- added property to set up the popup safe area
- fixed
null safetyissues
- fixed
null safetyissues after initial migration - migrated example to
null safety - allowed
httptraffic for Android to make async requests work
- fix bug filterOnline #116
- Add onBeforeChange CallBack @thanks Vasiliy
- Add onPopupDismiss CallBack @thanks Vasiliy
- search delay feature @thanks Vasiliy
- BottomSheet scrolling behavior improvement @thanks Vasiliy
- fix bug update selectedItem
- added an ability to override the clear and dropdown icon buttons with builder
suffixIconsadds an ability to switch icon management through thesuffixIconofInputDecoration
- fix bug caused by last flutter SDK breaking changes #69
- Add a getter for the selected item
- Add a getter to check if the DropDownSearch is focused or not
- fix bug default selectedItem #56
- Invoke the dropdown programmatically
- change dropdownSearch selected value programmatically
- fix issue #25
- fix issue #36
- fix issue #51
- fix issue #55
- replace autoValidate by autoValidateMode
- pass searchWord to loadingBuilder/emptyBuilder/errorBuilder
- add searchBoxController to be used as default filter for example
- fix bug
- remove
dropDownSearchDecorationduplication - add
popupBarrierColorfeature
- add
popupItemDisabledfeature, to manage popupItems accessibility
- handle dark and light theme
- handle dropdownBuilder if item is Null
- add dropdown icon customization
- add clear button icon customization
- manage default border color
- fix issue: default selected item
- update description
- update description
- fix issue
- Integrate material design
- make DropdownSearch as item of a form
- manage validation form
- fix bug error widget
- add autoFocus searchBox feature
- fix bug: filter items
- fix menu mode background color
- fix bug: empty items online
- emptyBuilder
- loadingBuilder
- errorBuilder
- improve Menu mode
- improve bottomSheet mode
- minor improvement
- minor improvement
- Health suggestions
- Add showSelected option
- Improve performance
- Improve performance
- BugFix
- BugFix
- Update README.md
- Update README.md
- Add catch error
- Add Feature : Filter Function as parameter
- Add Feature : enable/disable
- Add Feature : add three mode : Menu, BottomSheet and Dialog
- Add Feature : manageable height
- Bug fix
- Bug fix
- Replace Stream by valueNotifier
- Replace Stream by valueNotifier
- possibility to load filter online once
- improve performance
- bloc bug fix
- bug fix publication
- First publication