any_dropdown 0.0.6 copy "any_dropdown: ^0.0.6" to clipboard
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's isOpen now reflects the animation state (AnimationController.isForwardOrCompleted) instead of the raw MenuController.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 abstract ChangeNotifier base class that manages options, loading, and error directly.
    • Former AnyDropdownOptionProvider<T> renamed to AnyDropdownListOptionProvider<T> as a concrete subclass.
    • AnyDropdownOptionState<T> is removed — access options / loading / error on the provider itself.
  • Breaking: buildMenu no longer receives AnyDropdownOptionState<O> — option state is accessed through the delegate's optionProvider getter.
  • Breaking: Menu delegates renamed for consistency:
    • AnyDropdownSingleMenuDelegate<T>AnyDropdownSingleListMenuDelegate<T>.
    • AnyDropdownMultiMenuDelegate<T>AnyDropdownMultiListMenuDelegate<T>.
  • Breaking: Menu delegate constructors now require an AnyDropdownListOptionProvider so that the menu has its own reference to the current options, loading, and error state.

0.0.4 #

  • Support WidgetState.disabled — when onChanged is null, 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.buildTrigger now receives bool isOpen instead of MenuController menuController.

0.0.3 #

  • Fix example error.

0.0.2 #

  • AnyDropdown now accept a hasError parameter for error state styling.
  • Example app: added error state demo.

0.0.1 #

  • AnyDropdownSingle<T> — single-select dropdown.
  • AnyDropdownMulti<T> — multi-select dropdown returning Set<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.
1
likes
160
points
51
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A customizable dropdown widget for Flutter with single-select, multi-select, async options, and fully customizable trigger and menu delegates.

Repository (GitHub)
View/report issues

Topics

#ui #dropdown

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on any_dropdown