any_dropdown 0.0.6
any_dropdown: ^0.0.6 copied to clipboard
A customizable dropdown widget for Flutter with single-select, multi-select, async options, and fully customizable trigger and menu delegates.
0.0.6 #
- Default trigger delegates now include a dropdown arrow indicator on the right side that rotates 180° when the menu is open. The arrow color follows the resolved text style (gray when disabled, red in error state).
buildTrigger'sisOpennow reflects the animation state (AnimationController.isForwardOrCompleted) instead of the rawMenuController.isOpen, so the arrow rotation stays in sync with the open / close animation.
0.0.5 #
- Restructured the option provider layer for extensibility:
AnyDropdownOptionProvider<T>is now an abstractChangeNotifierbase class that managesoptions,loading, anderrordirectly.- Former
AnyDropdownOptionProvider<T>renamed toAnyDropdownListOptionProvider<T>as a concrete subclass. AnyDropdownOptionState<T>is removed — accessoptions/loading/erroron the provider itself.
- Breaking:
buildMenuno longer receivesAnyDropdownOptionState<O>— option state is accessed through the delegate'soptionProvidergetter. - Breaking: Menu delegates renamed for consistency:
AnyDropdownSingleMenuDelegate<T>→AnyDropdownSingleListMenuDelegate<T>.AnyDropdownMultiMenuDelegate<T>→AnyDropdownMultiListMenuDelegate<T>.
- Breaking: Menu delegate constructors now require an
AnyDropdownListOptionProviderso that the menu has its own reference to the current options, loading, and error state.
0.0.4 #
- Support
WidgetState.disabled— whenonChangedisnull, the dropdown is disabled: the trigger is non-interactive, the open menu is auto-closed, and trigger styles render a gray border/text. - Breaking:
AnyDropdownTriggerDelegate.buildTriggernow receivesbool isOpeninstead ofMenuController menuController.
0.0.3 #
- Fix example error.
0.0.2 #
AnyDropdownnow accept ahasErrorparameter for error state styling.- Example app: added error state demo.
0.0.1 #
AnyDropdownSingle<T>— single-select dropdown.AnyDropdownMulti<T>— multi-select dropdown returningSet<T>.AnyDropdownOptionProvider<T>— option list management with sync/async support.- Customizable trigger via
AnyDropdownTriggerDelegate<T>. - Customizable menu via
AnyDropdownMenuDelegate<T, O>(position, animation, decoration). AnyDropdownItemView<T>— selectable menu item with widget-state styling.- Keyboard activation (Enter / Space) and focus/hover state tracking.
- Example app with 6 usage scenarios.