Skip to content
pubscout

expandable_search_bar

0.0.2, released 4 years ago by salehtz.ir

An animated expandable search bar widget for Flutter.

WASM-ready
$ flutter pub add expandable_search_bar
Source repository

What it does

Provides an animated search bar widget that expands and collapses. It allows customization of width, background color, text, icon color, shadows, animation duration, and animation curve.

AI-written summary of version 0.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want a searchable UI component with built-in expansion animations
  • You are developing for mouse devices like Web, Windows, macOS, or Linux where the package is documented to work

Skip it when

  • You need immediate robust support for mobile devices, as the package note states it is currently only available on mouse devices
  • You need advanced font styling and color controls out-of-the-box, which are listed as pending goals

Strengths

  • Easy to integrate and use in Flutter layouts
  • Offers multiple visual customization properties like shadows, colors, and durations

Weaknesses

  • Currently restricted to mouse-based devices (Web, Windows, macOS, Linux)
  • Lacks direct built-in options to change font style and color

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Add the dependency to pubspec.yaml and import it in your Dart code.

AnimatedSearchBar(
  ExpandableSearchBar(
    onTap: () {
      print('searched');
    },
    hintText: "search something",
  ),
)

Alternatives

Packages that do the same job and could replace expandable_search_bar.