0 purchases
suggestion input field
SuggestionTextField #
SuggestionTextField is a Flutter package that provides a text field with auto-suggestion feature. It's useful for scenarios where users need to input data from a predefined list.
Installation #
To use SuggestionTextField, add it to your dependencies in pubspec.yaml:
dependencies :
suggestion_text_field : ^1.0.5
copied to clipboard
Usage #
Simply import the package and use the SuggestionTextField widget in your Flutter app. Here is an example:
import 'package:suggestion_input_field/suggestion_input_field.dart';
List<MapEntry> list=[];
MapEntry? mapEntry;
SuggestionTextField<MapEntry>(
value: mapEntry, textFieldContent: TextFieldContent( label: 'Map Entry Details', ),
suggestionFetch:(textEditingValue) async{
return list; },
onClose: () {
mapEntry=null; setState(() {
});
},
);
copied to clipboard
Example #
click here for example
Issues and feedback #
Please file issues and feedback using the Github issues page for this repository.
If you have any suggestions or feedback, please send an email to [email protected] and we'll be happy to hear from you!
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.