custom_dropdown_pro 0.0.7
custom_dropdown_pro: ^0.0.7 copied to clipboard
A searchable, customizable Flutter dropdown with bottom sheet, dialog, and overlay modes.
Changelog #
All notable changes to custom_dropdown_pro will be documented in this file.
This project adheres to Semantic Versioning.
0.0.7 — 2026-06-11 #
- [FEAT] Header support — Added custom
headerwidget support anddefaultHeadertoggle toSearchableDropdownFieldfor bottom-sheet and dialog modes. - [FEAT] Dynamic overlay width — Adjusted dropdown overlay width to dynamically match the triggering field's width instead of using a hardcoded
320. - [FIX] Bottom-sheet layout — Improved bottom-sheet height behavior by using
FlexibleandshrinkWrap: trueto prevent layout issues when headers are custom/varying.
0.0.6 — 2026-05-21 #
- [FEAT] Documentation & Quality bump — 100% of exported public API elements now fully documented to satisfy pub.dev publishing guidelines.
- [FIX] Lint improvements — Enabled
public_member_api_docslint across the package and verified clean analysis.
0.0.5 — 2026-05-12 #
- Fixed repository link in pubspec.
0.0.4 — 2026-05-12 #
Bug fixes & publish fixes #
- [FIX] Library filename mismatch — Renamed the primary library entrypoint to match the published package name and updated the
librarydeclaration accordingly, as required by pub.dev. - [FIX] Missing
repositoryfield — AddedrepositoryURL topubspec.yaml. - [FIX] Improved package description — Expanded description to meet pub.dev length guidelines.
- [BUMP] Version — Incremented to
0.0.4to supersede the previously published0.0.3.
0.0.1 — 2026-05-12 #
Initial release #
Core widget
SearchableDropdownField<T>— fully generic searchable dropdown field- Three display modes:
DropdownMode.bottomSheet,DropdownMode.dialog,DropdownMode.overlay - Built-in search with 300 ms debounce via
Debouncer - Async item loading via
asyncItemscallback with automatic loading indicator - Custom item tile via
itemBuildercallback - Form-field support:
validatorandautovalidateMode - Programmatic control via
SearchableDropdownController<T>(open,close,clear) DropdownBehavior— configurable UX flags (enableSearch,clearable,closeOnSelect,autofocusSearch,enableAnimations)DropdownStyle— full visual theming (background, border radius, item text style, title style, search field decoration, outer field decoration)compareFnsupport for equality checking on custom objects
Bug fixes #
-
[FIX] Overlay mode navigates back on item select —
_selectItempreviously always calledNavigator.pop(context). ForDropdownMode.overlaythe content lives in anOverlayEntry(not a route), so this incorrectly popped the page. Fixed by introducing anonClosecallback onDropdownBottomSheet; the parent passes_overlay.hide()for overlay mode and leavesnullfor bottom-sheet / dialog modes soNavigator.popis used as before. -
[FIX] Clear button does not deselect item — Tapping the ✕ clear button cleared the
TextEditingControllertext but left the internalselectedIteminDropdownStateintact, so the item remained visually selected when the dropdown was reopened. Fixed in three places:DropdownState.copyWith— introducedclearSelectedItemflag to allow explicitly settingselectedItemtonull(the previousselectedItem ?? this.selectedItempattern silently ignorednull).SearchableDropdownController.clearSelection()— updated to usecopyWith(clearSelectedItem: true)._SearchableDropdownFieldState._clearSelection()— now calls_controller.clearSelection()in addition to clearing the text field.