standard_searchbar 1.0.1 copy "standard_searchbar: ^1.0.1" to clipboard
standard_searchbar: ^1.0.1 copied to clipboard

A simple and very customizable search bar widget for Flutter.

Standard SearchBar #

A simple and very customizable search bar widget for Flutter.

Features #

  • Implement a search bar with ease.
  • Customize the search bar's appearance:
    • Change the search icon.
    • Adjust size and color.
    • Personalize placeholder text.

Installation #

Add the following line to your pubspec.yaml file:

dependencies:
  easy_search_bar: ^1.0.0

Then, run flutter pub get to install the package.

Usage #

Import the package:

import 'package:standard_searchbar/standard_searchbar.dart';

Create a StandardSearchBar widget:

StandardSearchBar(
  onChanged: (value) {
    // Handle search input change
  },
  onSubmitted: (value) {
    // Handle search submission
  },
),

Examples #

StandardSearchBar(
  width: MediaQuery.of(context).size.width * 0.9,
  backgroundColor: const Color(0xFF35404D),
  hintText: 'Search Packages',
  cursorColor: Colors.white,
  hintStyle: const TextStyle(color: Color(0xFF8d9399)),
  startIconSize: 16,
  startIconPaddingRight: 0,
  startIconColor: const Color(0xFF848B92),
  textStyle: const TextStyle(color: Colors.white),
),

Contributing #

Contributions are welcome! Please fork the repository and open a pull request with your changes.

License #

This project is licensed under the MIT License - see the LICENSE file for details.

7
likes
0
pub points
80%
popularity

Publisher

unverified uploader

A simple and very customizable search bar widget for Flutter.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on standard_searchbar