search_plus 3.3.2
search_plus: ^3.3.2 copied to clipboard
A production-grade Flutter search package with async API, local, and hybrid search adapters, plus polished UI widgets, theming, animations, and localization support.
Changelog #
3.3.2 #
- Fix:
AppBarSearchButtonicon no longer shifts vertically (~20 px) when the search field expands or collapses.- The widget is now wrapped in a
SizedBoxwhose height equalsinputHeight, giving the AppBar a stable, constant-height anchor throughout the animation. - The icon
SizedBoxnow usesinputHeightfor both width and height (instead of the hard-coded40) so that custominputHeightvalues are respected correctly. crossAxisAlignment: CrossAxisAlignment.centeris now set explicitly on the internalRowto guarantee vertical centering regardless of layout context.
- The widget is now wrapped in a
- Theme: Added
activeIconColortoSearchBarThemeData— controls the search-icon color when the field is expanded or focused, independently offocusedBorderColor.- Defaults to
ColorScheme.primary. copyWithandresolveupdated accordingly.AppBarSearchButtonnow interpolates the icon color betweeniconColor(collapsed) andactiveIconColor(expanded) instead of usingfocusedBorderColorfor the icon.
- Defaults to
3.3.1 #
- Added
textFieldBorderandtextFieldFocusedBorder(InputBorder?) toSearchBarThemeDatafor full control over the innerTextField's border in all states.- Both default to
InputBorder.none, eliminating the unwanted blue focus ring that Flutter's ambientInputDecorationThemewould otherwise draw inside the search bar. - Override either property to apply a custom
OutlineInputBorder,UnderlineInputBorder, or any otherInputBordersubclass. - Applied in both
AppBarSearchButtonandSearchPlusBar.
- Both default to
- Added
copyWithmethod toSearchBarThemeDatafor convenient partial updates.
3.3.0 #
- Added
AppBarSearchButton: a compact animated search action forAppBar.actions.- Renders a search icon by default; smoothly expands into a full text input on hover (desktop/web) or tap.
- Collapses automatically when the field is empty and both hover and focus are removed.
- Persistent expanded state while text is present.
- Fully integrated with
SearchTheme/SearchPlusThemeDatafor consistent styling. - Smooth
SizeTransition+FadeTransition+ icon color animation driven by a singleAnimationController. - Responsive — hover-expand on desktop/web, tap-expand on mobile.
- New example
AppBarSearchExampleadded to the example app.
3.2.3 #
- Readme.md file updated