material_search_bar

Last updated:

0 purchases

material_search_bar Image
material_search_bar Images
Add to Cart

Description:

material search bar

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';
copied to clipboard
@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.teal[400]),
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.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.