Skip to content
pubscout

searchbar_animation

0.0.4, released 4 years ago by an unverified publisher

A customizable search bar widget with a horizontal slide animation.

WASM-ready
$ flutter pub add searchbar_animation
Source repository

What it does

Provides a search bar widget that expands and collapses with a horizontal slide animation. It supports customizable styling, button icons, text input parameters, and various expansion callbacks.

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

Use it when

  • You need an animated sliding search bar in your app bar or UI.
  • You want a customizable search input that collapses into an icon button.

Skip it when

  • You need a persistent, full-width search input without toggle animations.
  • You require a complex search-as-you-type delegate mechanism out of the box.

Strengths

  • Provides built-in horizontal slide animation for search bars.
  • Highly customizable with multiple color, border, and widget options.
  • Includes keyboard focus control and expansion callbacks.

Weaknesses

  • Limited to a specific sliding search bar pattern.
  • Relies on version 0.0.4 which may lack modern updates.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
SearchBarAnimation(
    textController: TextEditingController(),
    isOriginalAnimation: false,
    buttonBorderColour: Colors.black45,
    buttonIcon: Icons.search,
    onFieldSubmitted: (String value){
        debugPrint('onFieldSubmitted value $value');
    },
)

Alternatives

Packages that do the same job and could replace searchbar_animation.