Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/presswink/text_search_field

this is going to be dependency search field widget / library for flutter
https://github.com/presswink/text_search_field

dart dartlang dropdown filed flutter flutter-apps library modules search-interface searchbar searchfield searchfilter searchview

Last synced: about 19 hours ago
JSON representation

this is going to be dependency search field widget / library for flutter

Awesome Lists containing this project

README

        

# search_field

a dependency search field plugins / library for flutter

## Getting Started

1) add below line in your `pubspec.yaml`

```cmd
text_search_field: ^0.0.4
```

2) call below given command

```cmd
flutter pub get

```

## Example

1) simple Example

```cmd
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](https://github.com/Adityapanther/)