/
AutoCompleteView

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 the isRequired value as true/false. (*) indicates mandatory field.

  • requiredMessage : Customise your error validation message using requiredMessage variable

  • listTile : 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

SL No

Widgets

Description

1

TypeAheadField()

TextField which renders suggestions

2

InputDecoration()

Text Box Decoration

 

Files Path :

Primary Files : https://github.com/misdwss/punjab-mgramseva/blob/master/frontend/mgramseva/lib/widgets/auto_complete.dart

 

Related content

RadioButtonFieldBuilder
RadioButtonFieldBuilder
More like this
ShortButton
Read with this
SelectFieldBuilder
SelectFieldBuilder
More like this
ButtonGroup
Read with this
Text Field Builder
Text Field Builder
More like this
BottomButtonBar
BottomButtonBar
Read with this