anim_search_app_bar 1.0.3 icon indicating copy to clipboard operation
anim_search_app_bar: ^1.0.3 copied to clipboard

A flutter package that has an animated search bar with loads of customization

anim_search_app_bar #

An animated SearchAppBar Widget, to be used with Flutter.

Website example >> https://animsearchappbar.mustafaturkmen.dev

demo

Usage #

It has a very easy to use.

add this line to pubspec.yaml


   dependencies:
     anim_search_app_bar: ^1.0.3

import package


   import 'package:anim_search_app_bar/anim_search_app_bar.dart';

const AnimSearchAppBar(
  cancelButtonText: "Cancel",
  hintText: 'Search',
),

Complete Example #

class SearchScreen extends StatelessWidget {
  final TextEditingController searchController = TextEditingController();
  
  SearchScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        children: [
          AnimSearchAppBar(
            cancelButtonText: "Cancel",
            hintText: 'Search for Neighborhood, Street or avenue',
            cSearch: searchController,
            appBar: const PBAppBar(
              title: 'Search',
            ),
          ),
          const Expanded(child: SearchView()),
        ],
      ),
    );
  }
}
12
likes
120
pub points
65%
popularity

Publisher

verified publisher iconmustafaturkmen.dev

A flutter package that has an animated search bar with loads of customization

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on anim_search_app_bar