anchored_dropdown_field 0.3.1
anchored_dropdown_field: ^0.3.1 copied to clipboard
Animated, anchored Flutter dropdown fields with forms, single and multiple selection, local filtering, async search, and customizable menus.
0.3.1 #
- Added
DropdownSearchConfig.textCapitalizationto configure the search keyboard while preserving the existingTextCapitalization.nonedefault. - Typed and pasted queries remain unchanged; capitalization is a keyboard hint.
0.3.0 #
- Breaking: Remove
DropdownSearchConfig.decoration. Configure the search hint, hint style, and all other field styling through the dropdown'sdecorationonly. - Consume outside taps by default so dismissing the panel does not activate
controls underneath. Explicit
consumeOutsideTap: falseremains available. - Recalculate panel placement and height when the keyboard appears or hides, preserving the input and options within the available space.
- Reveal the first selected option when opening, including asynchronously loaded options, variable-height items, headers, and separators, without scrolling the surrounding form.
- Reduce spacing between the clear button and rotating dropdown indicator.
- Animate long option lists as a group to avoid per-item interval rounding
assertions in
MenuAnchor.
0.2.0 #
- Moved local and asynchronous search into the dropdown field itself. The anchored panel now contains options and result states without a separate search input.
- Preserve field decoration, validation, selected-value builders, and selection when entering, clearing, or dismissing a query.
- Keep keyboard focus while selecting multiple values and hovering over results.
- Support Escape to close and Arrow Down to navigate to the first enabled option.
- Cancel pending debounce timers and ignore late results after closing.
- Retain external search controller ownership and optional query persistence.
- Deprecate menu-only search padding. Search decoration now supplies the placeholder text and style; use the field decoration for all other styling.
- Add regression coverage for in-field geometry, keyboard interaction, async lifecycle, validation, multiple selection, RTL, and light and dark themes.
0.1.0 #
- Initial release.
- Added controlled and form-aware single-selection dropdowns.
- Added controlled and form-aware multiple-selection dropdowns.
- Added local filtering and debounced asynchronous search.
- Added customizable menu, item, selected value, loading, and error states.
- Added adaptive menu sizing and animated open, close, and indicator states.