Material_Search_Bar

A materialistic and feature packed search bar with a Trie implementation for efficient autocorrect. Made by Christopher Gong and Ankush Vangari.

Usage

A simple usage example:

import 'package:search_bar/MaterialSearchBar.dart';

@override Widget build(BuildContext context) { MaterialSearchBar mSB = MaterialSearchBar( searchBarColor: Colors.white, searchBarTextColor: Colors.black, searchBarFontSize: 20.0, searchResultsBackgroundColor: Colors.white, searchResultsTextColor: Colors.black, searchResultsFontSize: 20.0, checkmarkIcon: Icon(Icons.check, color: Colors.teal400), submitButton: FloatingActionButton( heroTag: null, tooltip: "Search", child: new Icon(Icons.arrow_forward), backgroundColor: Theme.of(context).primaryColor, foregroundColor: Colors.white, ), items: 'apple', 'banana', ); mSB.changeOnSubmit(() { for (String s in mSB.selectedItems) print(s); }); mSB.changeOnButtonSubmit((String value) { for (String s in mSB.selectedItems) print(s); }); return mSB; }

Features and bugs

Please file feature requests and bugs at the issue tracker.

Libraries

material_search_bar_results
material_search_bar_results_item