material_floating_search_bar_plus
1.0.1, released a year ago by xpointsolutions.eu
An expandable and animated floating search bar widget for Flutter.
What it does
Provides a persistent floating search bar widget that expands and animates between states. It supports custom transitions, query handling with debounce delays, and integration with scrollables to hide or show on scroll.
AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want a persistent Google-style floating search bar in your app.
- You need expandable search suggestions or animated transitions on search open and close.
Skip it when
- You only need a static standard app bar search input field without floating or expansion animations.
- You require complex search indexing or backend integration out of the box.
Strengths
- Smooth animations and built-in transitions like circular, expanding, and slide fade.
- Customizable width, margins, actions, and scrolling behaviors.
- Active continuation of a popular package with Flutter 3 support.
Weaknesses
- Requires careful handling of scrollable heights and shrink-wrapping unless isScrollControlled is used.
- Not documented for non-Flutter platforms beyond mobile and desktop.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
FloatingSearchBar(
hint: 'Search...',
scrollPadding: const EdgeInsets.only(top: 16, bottom: 56),
transitionDuration: const Duration(milliseconds: 800),
transitionCurve: Curves.easeInOut,
physics: const BouncingScrollPhysics(),
axisAlignment: 0.0,
openAxisAlignment: 0.0,
width: 600,
debounceDelay: const Duration(milliseconds: 500),
onQueryChanged: (query) {},
transition: CircularFloatingSearchBarTransition(),
builder: (context, transition) {
return ClipRRect(
borderRadius: BorderRadius.circular(8),
child: Material(
color: Colors.white,
elevation: 4.0,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [ListTile(title: Text('Result 1'))],
),
),
);
},
)Alternatives
Packages that do the same job and could replace material_floating_search_bar_plus.
- stylish_bottom_bar
A collection of stylish bottom navigation bars for Flutter with animations and bubble effects.
69Compare - bottom_navy_bar
A beautiful, animated bottom navigation bar widget for Flutter.
50Compare