0 purchases
autocomplete plus
autocomplete_plus #
Flutter package AutoCompletePlus
#🚧 Tests in progress...
AutoCompletePlus<String>.floating(
optionsBuilder: (textEditingValue) =>
textEditingValue.text.isEmpty
? []
: _words.where(
(element) =>
element.startsWith(textEditingValue.text),
),
fieldDecoration: const InputDecoration(
border: OutlineInputBorder(),
),
),
copied to clipboard
AutoCompletePlus<String>.fade(
optionsBuilder: (textEditingValue) =>
textEditingValue.text.isEmpty
? []
: _words.where(
(element) =>
element.startsWith(textEditingValue.text),
),
fieldDecoration: const InputDecoration(
border: OutlineInputBorder(),
),
fadeTextStyle: const TextStyle(
color: Colors.grey,
),
),
copied to clipboard
AutoCompletePlus<UserModel>.fadeAndFloating(
optionsBuilder: (textEditingValue) =>
textEditingValue.text.isEmpty
? []
: _users.where(
(element) =>
element.name.startsWith(textEditingValue.text),
),
onSelected: (option) {
print('Selected: ${option.name}');
},
fieldDecoration: const InputDecoration(
border: OutlineInputBorder(),
),
displayStringForOption: (option) => option.name,
fadeTextStyle: const TextStyle(
color: Colors.grey,
),
),
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.