- Added
disposeController
toSearchDropDown
, it defines if the searchController will be disposed after the widget is disposed (default:true
). If set to true, you should removesearchController.dispose()
from your controller/widget code.
- Add ios to sample.
- Minor code improvements.
- Add the necessity to pass the controller to the widget instead of creating it on the dropdown. Attempt to fix 41
- [Breaking] Complete remake of
SearchDropDown
(still missing multiple search). Please report any issues/regressions. - Added edit function to
SearchDropDown
. - Added the possibility to block keyboard from appearing with
searchBarSettings.showKeyboardOnTap
.
- Fixed deprecation warning from flutter 3.27.
- Lowered dart constraint to 3.0.
- Added
searchBarPadding
parameter to allow changing the internal padding of the single searchBar. - Mini fix to search bar actions spacing.
- Added missing docs.
- Bumped flutter_lints to 5.0.0
- Added
showClearIcon
parameter to single selection. It alows you to hide the searchbar clear Icon.
- Added
showArrow
parameter to multiple and single selection. It alows you to hide the searchbar arrow. - Fixed clear button visibility.
- Fixed latin characters search.
- Now it is possible to enable/disable the search bar.
- [Breaking]
enabled
property requires flutter 3.22. - Updated web sample.
- Fixed deleting items in single search.
- Added
addAditionalWidget
parameter to multiple and single selection. It alows you to put a widget between the text and the create button on the add item cell. - Added
defaultAditionalWidget
parameter to multiple and single selection. It alows you to put a widget between the text and the delete button on the default item cell. - Added
overlayListSettings.aditionalWidgetSpacing
to change the distance between thedefaultAditionalWidget
and the delete button on the default item cell.
- Added
forceSelection()
function to multiple and single selection. It alows you to force the selected value from outside the widget. Nothing happens if there isn't a value with that label on the list. - Fixed list refresh when item is deleted without a confirmation dialog.
- Added
overlayListSettings.offsetWidth
and.offsetHeight
to change the distance between the dropdown and the list of items. - Bumped flutter_lints to 3.0.1
- Make searchbar lose focus after closing the overlay.[35] (#35)
- Fixed TextOverflow inside the list and on create item.
- Fixed Single warning.
- Fixed ScrollController that was bug the first item selection
- Added
overlayListSettings.reOpenedScrollDuration
parameter. It allows you to define the Duration of scroll down to selected item when list are reopened. Defaults to 1 second.
- Added
searchBarSettings.searchBarTextStyle
parameter. It allows you to define the style of the text the user typed on the searchbar. Defaults tosearchBarSettings.hintStyle
. - Fix readme.
- Fixed
MultipleSearchDropDown
selection. - Fixed
SearchDropDown
ordering.
- [Breaking] many visual parameters are now inside
SimpleOverlaySettings
andSimpleSearchbarSettings
. Some of them received a new name to better represent what they do. onDeleteItem
andonAddItem
are not required anymore.- Added
sortType
parameter to allow defining how the list of items should be sorted. - The drop list now scrolls to the selected item (if there is one).
- Improved code documentation: many files and variables now have a text explaining a little more about them. Still some are missing and will be added on the future.
- Code cleanup and organization.
- Improved sample.
- Improved consistency between single and multiple search dropdowns.
- Fixed a issue where an incomplete selection in
SearchDropDown
after a search, passed the impression that the selected value changed + addedclearOnClose
parameter toSearchDropDown
. If it's true oraddMode
=false
, after the user closes the overlay without selecting an option and nothing was previously selected, the textfield will be cleared. 18 - Fixed an older incorrect implementation of
SearchDropDown
.
- Made
addMode
anddeleteMode
true by default. - [Breaking] Added new parameter
newValueItem
to define how the text on the input transforms to aValueItem
of typeT
. - [Breaking]
ValueItem
now has a type. - Improved sample to show the usage with custom classes.
- Added
verifyInputItem
property to single and multiple search widgets. It allows the dev to check if the item added is valid based on some rule. - Added
verifyDialogSettings
property to allow customizing the dialog that pops up after the user inserts some invalid value. To change the button on the dialog, use thecustomVerifyButtonSettings
property.
- Mini fix in single search widget if the list is empty.
- Fixed a issue where the dropdown didn't follow the textfield when the keyboard is open. 5
- Mini visual improvements.
- Added
confirmDelete
property to single and multiple search widgets. It allows the dev to confirm the action before deleting the row. - Added
deleteDialogSettings
property to allow customizing the delete confirmation dialog. - Remake of the overlay handling system to improve the code.
- (breaking) Renamed
clearSelection
toresetSelection
. - Fixed typo in single search
listItems
property.
- Added
miniBoxIconColor
property to multiple search widget. It allows the dev to set inside mini boxes icons color. - Added
padding
property to single and multiple search widgets. It allows the dev to set inside drop items padding. - Added
separatorHeight
property to single and multiple search widgets. It allows the dev to set a size between to items inside the drop.
- Added
outsideIconColor
property to single and multiple search widgets. It allows the dev to set a color to the dropdown arrow. - Added
outsideIconSize
property to single search widget. It allows the dev to set a size to the dropdown arrow.
- Added
selectedItem
property to single search widget. It allows the dev to set an initial value to the dropdown.
- Added
clearSelection()
function on multiple and single search widgets. It allows the dev to reset the dropdown to the initial state. - Improved sample.
- Improved readme.
- Made
onAddItem
parameter arequired
one. - Mini fix on searchbar Height
- Convert
List<String>
toList<ValueItem>
, allowing the devs to have anything as an object on the dropdown.
- Fix clearing single search via outside button
- Visual fixes
- Fix multiple elevation
- Option Action Icon
- First release.