searchable_dropdown_pro 1.1.0
searchable_dropdown_pro: ^1.1.0 copied to clipboard
A highly flexible, production-ready searchable dropdown for Flutter. Supports custom text fields, custom validators, lazy-loaded items, composited overlay positioning, and toggleable search — all with [...]
Changelog #
1.1.0 #
- Flutter Web support – replaced
RawAutocompleteoverlay with a manualOverlayEntryso the dropdown renders in the correct z-layer on all platforms, including the browser. - Added
TapRegionfor reliable outside-click dismissal on web (focus-loss events alone are unreliable in browsers). - Fixed vertical flip: the overlay now opens upward when there is insufficient space below the field.
- Replaced deprecated
withOpacity(…)calls withwithValues(alpha: …). - Replaced deprecated
surfaceVariantwithsurfaceContainerHighest. - Scrollbar
thumbVisibilityis automatically disabled on web to avoid conflicting with native browser scrollbars. - Post-frame focus request on web so the browser routes keyboard events correctly before the overlay appears.
_SearchableDropdownActionis nowSearchableDropdownAction(non-private) so the widget can reference it across files cleanly.
1.0.0 #
- Initial release.
SearchableDropdownPro<T>– generic, zero-dependency searchable dropdown.SearchableDropdownDecoration– full theming support.SearchableDropdownController– programmatic open / close / clear / setText.SearchableDropdownItem<V>– optional convenience wrapper for richer tiles.- Composited overlay via
CompositedTransformFollower— stays pinned even insideSingleChildScrollView. isSearchableflag to toggle filtering on/off.fieldBuilderfor bringing your own design-system text field.itemBuilderfor fully custom item tiles.filterBuilderfor custom filter logic.- Async / lazy item loading with automatic overlay refresh.
- Full widget test coverage.