standard_searchbar 2.1.1 copy "standard_searchbar: ^2.1.1" to clipboard
standard_searchbar: ^2.1.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.

Preview Code

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:
  standard_searchbar: ^2.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: 360,
  suggestions: [
    'apple',
    'banana',
    'melon',
    'orange',
    'pineapple',
    'strawberry',
    'watermelon'
  ],
),

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
150
pub points
79%
popularity

Publisher

unverified uploader

A simple and very customizable search bar widget for Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on standard_searchbar