SelectFieldBuilder

 

SelectFieldBuilder is a customised searchable Dropdown widget along with the label for the dropdown.

 

 

Features

  • isRequired : Developers can make a text 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

  • isEnabled : If isEnabled is false , then the text field becomes read-only (non-editable).

 

 

Widgets used from Flutter Material Library

SL No

Widgets

Description

SL No

Widgets

Description

1

DropdownMenuItem

options for the drop down

2

InputDecoration()

Text Box Decoration

3

TextFormField()

Text Field

4

ListTile()

Drop down options tile

 

Files Path :

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

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