suggestion_input_field 0.0.4
suggestion_input_field: ^0.0.4 copied to clipboard
Customizable Flutter input field with suggestions for faster, more accurate user input. Ideal for forms and search bars.
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 this package, add suggestion_input_field as a dependency in your pubspec.yaml file.
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(() {
});
},
);
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 [chegz.dev@gmail.com] and we'll be happy to hear from you!