text_search_field 0.0.4 copy "text_search_field: ^0.0.4" to clipboard
text_search_field: ^0.0.4 copied to clipboard

A dependency text search field widget for flutter which is going to help you with implementation of search filed with suggestions

search_field #

a dependency search field plugins / library for flutter

Getting Started #

  1. add below line in your pubspec.yaml
text_search_field: ^0.0.4
  1. call below given command
flutter pub get

Example #

  1. simple Example
import 'package:search_field/search_field.dart';
/// global variable
final _firstController = SearchFieldController();

TextSearchField(
  controller: _firstController,
  filterItems: [
    TextSearchFieldDataModel(key: "hey", value: "hello"),
    TextSearchFieldDataModel(key: "hey_1", value: "bro"),
    TextSearchFieldDataModel(key: "hey_2", value: "how are you"),
  ],
  onSelected: (primarySelected, index, item) async {
    print("primary item selected: $primarySelected");
    print("selected item index: $index");
    print("item key: ${item.key}, value: ${item.value}");
    },
)

demo #

SearchField screenshot

contributor #

@Aditya panther

2
likes
140
pub points
38%
popularity

Publisher

verified publisherpresswink.com

A dependency text search field widget for flutter which is going to help you with implementation of search filed with suggestions

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

flutter, touch_ripple_effect

More

Packages that depend on text_search_field