animation_search_bar 0.0.4 copy "animation_search_bar: ^0.0.4" to clipboard
animation_search_bar: ^0.0.4 copied to clipboard

outdated

A Customizable Animated Search Bar. It is suitable for the AppBar.

animation_search_bar #

A Customizable Animated Search Bar. It is suitable for the AppBar.

Getting Started #

Simple use case #

AnimationSearchBar(
   backIconColor: Colors.black,
   centerTitle: 'App Title',
   onChanged: (text) => debugPrint(text),
   searchTextEditingController: controller,
   horizontalPadding: 5)

All properties of this package #

AnimationSearchBar(
   ///! required
   onChanged: (text) => debugPrint(text),
   searchTextEditingController: controller,

   ///! optional
   //? back button
   backIcon: Icons.arrow_back_ios_new,
   backIconColor: Colors.white,
   isBackButtonVisible: true,
   previousScreen:
       null, //?It will push and replace this screen when pressing the back button
   //? close button
   closeIconColor: Colors.white,
   //? center title
   centerTitle: 'App Title', hintText: 'Search here...',
   centerTitleStyle: const TextStyle(
       fontWeight: FontWeight.w500,
       color: Colors.white,
       fontSize: 20),
   //? search hint text
   hintStyle: const TextStyle(
       color: Colors.white, fontWeight: FontWeight.w300),
   //? search text
   textStyle: const TextStyle(
       color: Colors.white, fontWeight: FontWeight.w300),
   //? cursor
   cursorColor: Colors.lightBlue.shade300,
   //? duration
   duration: const Duration(milliseconds: 500),
   //?
   searchFieldHeight: 35,
   horizontalPadding: 5,
   searchBarHeight: 50,
   searchBarWidth: MediaQuery.of(context).size.width - 20,
   verticalPadding: 0,
   //? search icon
   searchIconColor: Colors.white.withOpacity(.7),
   //? field decoration
   searchFieldDecoration: BoxDecoration(
       color: Colors.blueGrey.shade700,
       border: Border.all(
           color: Colors.black.withOpacity(.2), width: .5),
       borderRadius: BorderRadius.circular(15)),
   )
87
likes
0
pub points
87%
popularity

Publisher

unverified uploader

A Customizable Animated Search Bar. It is suitable for the AppBar.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on animation_search_bar