Text Field Builder
ย
TextFieldBuilder is a customised Text Form Field widget along with the label for the text field.
ย
ย
Features
prefixText
: Developers can give a prefix Text for the text field placeholder (Eg. +91, โน )isRequired
: Developers can make a text field mandatory / non-mandatory for the users based on theisRequired
value as true/false. (*) indicates mandatory field.suffixIcon
: Used to create an icon like eye button on the text field.requiredMessage
: Customise your error validation message usingrequiredMessage
variableobscureText
: Used to make the text masked for the usersmaxLength
: Used to specify the max characters to be entered in the text fieldisDisabled
: IfisDisabled
is true , then the text field becomes read-only (non-editable).
ย
ย
Widgets used from Flutter Material Library
SL No | Widgets | Description |
---|---|---|
1 |
| Text Field |
2 |
| Text Box Decoration |
3 |
| Text field Label |
ย
Files Path :
Primary Files : punjab-mgramseva/frontend/mgramseva/lib/widgets/TextFieldBuilder.dart at master ยท misdwss/punjab-mgramseva