- Fixed overlay exception error.
- Fixed Text Direction issue.
- Exposed
OnSearchChange
callback to get the search query. - Fixed dropdown reset issue when used inside a
ListView
. - Close dropdown when single select item is selected.
- Multiple breaking changes have been made to the library to make it more flexible and customizable.
- The library has been completely rewritten to make it more flexible and customizable.
MultiSelectDropDown
is nowMultiDropdown
.ValueItem
is nowDropdownItem
. It now supportsdisabled
&selected
properties.- Added
.future
constructor toMultiDropdown
to support future options. It now shows a loading indicator when the future is being resolved. .custom
constructor is now removed. You need to handle custom network requests manually by using the.future
constructor.- Dropdown now supports
Form Validation
,Prefix Icon
and some other properties. - Dropdown now somewhat takes decoration from theme, to make the UI more consistent across the app.
- Refer to the parameters of the
MultiDropdown
widget for more information.
height
property inDropdownDecoration
is renamed tomaxHeight
.
- Fixed
search
feature not working issue. - Fixed
itemBuilder
not working properly.
- Fixed issue causing
onSelectionChange
callback to not work properly.
- Added
closeOnBackButton
property toMultiDropdown
to close the dropdown when the back button is pressed. - Added
footer
andheader
properties toDropdownDecoration
to add a custom footer and header to the dropdown. - When dropdown is opened, now it supports gesture in the background as well. Example: You can now scroll the list behind the dropdown, when the dropdown is open.
prefixIcon
inFieldDecoration
is now aWidget
instead of anIcon
.- Fixed dropdown not opening on web.
- Fixed an issue causing validation to not work properly when using controller to update the dropdown.
- Renamed controller's
.open
method to.showDropdown
and.hide
method to.closeDropdown
.
- Added
backgroundColor
property toFieldDecoration
to set the background color of the dropdown field. - Fixed issue with
onSelectionChange
callback.
- Multiple breaking changes have been made to the library to make it more flexible and customizable.
- The library has been completely rewritten to make it more flexible and customizable.
MultiSelectDropDown
is nowMultiDropdown
.ValueItem
is nowDropdownItem
. It now supportsdisabled
&selected
properties.- Added
.future
constructor toMultiDropdown
to support future options. It now shows a loading indicator when the future is being resolved. .custom
constructor is now removed. You need to handle custom network requests manually by using the.future
constructor.- Dropdown now supports
Form Validation
,Prefix Icon
and some other properties. - Dropdown now somewhat takes decoration from theme, to make the UI more consistent across the app.
- Renamed
NetworkConfig
class toNetworkRequest
. - responseParser and responseErrorBuilder are now moved inside the
NetworkRequest
class. NetworkRequest.custom
is now added to support custom network requests.- Fixed an issue where unnecessary network call was being made when used with networkRequest.
- Updated chip style to support
disabled background color
,disabled label color
, andborder side
. - Fixed issue which caused the border-radius of the dropdown to be clipped by options
- Rename
borderRadius
parameter tofieldBorderRadius
- DropdwnField now shows a
loading indicator
when the options are being fetched from the network.
- Removed
showClearIcon
property from dropdown field. Use clearIcon property to set the clear icon. If clearIcon is null, the clear icon will not be shown. - Added
singleSelectItemStyle
property to dropdown field. Use this property to set the style of the selected item in single select dropdown. - Fixed suffixIcon animation issue in dropdown field, also added
animateSuffixIcon
property to enable/disable suffix icon animation. - Added
optionBuilder
property to dropdown field. Use this property to build custom dropdown options.
- Added dropdown background color property, search field background color property, and search field label property.
- Added onDelete callback to dropdown field. This callback is called when option is deleted from the dropdown field using the delete icon/button in chips.
- Fixed dropdown dismiss issue when search is enabled and option is/are selected on web.
- Fixed the issue where the selected options were ignored when the widget is rebuilt.
- Added dropdown margin property. Use this property to set the margin between the dropdown field and the dropdown.
- Added dropdownborderradius property. Use this property to set the border radius of the dropdown.
- Fixed controller being used after being disposed.
- Added support for search in dropdown options.
- Added support for custom suffix icon in dropdown field.
- Added support for custom clear icon in dropdown field.
- Fixed the issue where the dropdown would not follow the dropdown field when the dropdown field is scrolled.
- Updated http dependency to 1.1.0.
- Added maxItems property to dropdown field. If max items is set, the dropdown field will not allow more than the specified number of items to be selected.
- Upgraded http dependency to 1.0.0.
- Stable release.
- Fixed issue where selecting an option after passing initial options would not work.
- Fixed issue where chips were not being cleared when controller not set.
- Added support for controller.
- Use controller to get/set selected options, disabled options, options, and enabled options.
- Use controller to clear selected options, show/hide dropdown.
- Added support for focusnode, use focusnode to focus/unfocus the dropdown field programmatically.
- Added clear button to dropdown field.
- Added support focus on dropdown field.
- Updated dropdown to detect available space and show the dropdown above or below the field.
- Added custom border radius in dropdown.
- Fixed selected option text color not being applied.
- Fixed onOptionsSelected callback not being called when deleting the chip item.
- Fixed issue causing overlay exception.
- Added support for dropdown field padding, border color, border width, and border radius.
- Fixed onOptionsSelected callback not being called.
- Added toString/JsonSerialization/Equality/Hash methods to ValueItem class.
- Added new constructor that supports fetching the data from a URL.
- Added example.
- Updated screenshots.
- Initial release.