AutoCompleteView
AutoCompleteView is a TextField widget with a suggestion drop down feature.
Plugin used
flutter_typeahead
: ^3.2.0
Features
isRequired
: Developers can make this field mandatory / non-mandatory for the users based on theisRequired
value as true/false. (*) indicates mandatory field.requiredMessage
: Customise your error validation message usingrequiredMessage
variablelistTile
: List of the suggestions as you start typing.onSuggestionSelected
: Function to be executed on selecting any options from the suggestions
Widgets used from Flutter Material Library
SL No | Widgets | Description |
---|---|---|
1 |
| TextField which renders suggestions |
2 |
| Text Box Decoration |
Files Path :
Primary Files : https://github.com/misdwss/punjab-mgramseva/blob/master/frontend/mgramseva/lib/widgets/auto_complete.dart