Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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 the isRequired value as true/false

  • suffixIcon : Used to create an icon like eye button on the text field.

  • requiredMessage : Customise your error validation message using requiredMessage variable

  • obscureText : Used to make the text masked for the users

  • maxLength : Used to specify the max characters to be entered in the text field

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

Widgets used from Flutter Material Library

SL No

Widgets

Description

1

TextFormField()

Text Field

2

InputDecoration()

Text Box Decoration

3

Text()

Text field Label

Files Path :

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

  • No labels