simple_search_bar 0.1.7

  • Readme
  • Changelog
  • Example
  • Installing
  • 87

simple_search_bar #

A very simple yet functional Search Bar

[0.1.7] - 2019-10-8 2:32:00Z.

  • dispose text controllers

[0.1.6] - 2019-06-17 2:32:00Z.

  • initialQuery optional parameter add

[0.1.4] - 2019-05-28 17:50:00Z.

  • Solved bug on changing Controller state

[0.1.3] - 2019-05-28 15:37:00Z.

  • homepage point to Github repository.

[0.1.2] - 2019-05-28 15:32:00Z.

  • Example added.


import 'package:flutter/material.dart';
import 'package:simple_search_bar/simple_search_bar.dart';

class MySearchBar extends StatelessWidget{

  final AppBarController appBarController = AppBarController();

  Widget build(BuildContext context) {
    return Scaffold(
      appBar: SearchAppBar(
        primary: Theme.of(context).primaryColor,
        appBarController: appBarController,
        // You could load the bar with search already active
        autoSelected: true,
        searchHint: "Pesquise aqui...",
        mainTextColor: Colors.white,
        onChange: (String value) {
          //Your function to filter list. It should interact with
          //the Stream that generate the final list
        //Will show when SEARCH MODE wasn't active
        mainAppBar: AppBar(
          title: Text("Yout Bar Title"),
          actions: <Widget>[
              child: Icon(
              onTap: () {
                //This is where You change to SEARCH MODE. To hide, just
                //add FALSE as value on the stream
      body: Container(),


Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  simple_search_bar: ^0.1.7

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:simple_search_bar/simple_search_bar.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Oct 11, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/src/simple_search_bar.dart.

Run flutter format to format lib/src/simple_search_bar.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies