form_field_controller

Last updated:

0 purchases

form_field_controller Image
form_field_controller Images
Add to Cart

Description:

form field controller

Form Field Controller #
Simple and easy way to handle Form Fields and Validation.
Features #

✅ Controllers
✅ Input Formatters
✅ Input Validators
❌ Predefined Form Widgets


Available Form Field Controller #

Phone
Email
MultiLine
Name
Number
Amount
Text
Dropdown
MultiSelection

How to use #
Wrap all the form field widget inside Form widget.
PhoneFormFieldController phoneController = PhoneFormFieldController(const ValueKey("txtPhone"));
copied to clipboard
TextFormField(
controller: phoneController.textEditingController,
focusNode: phoneController.focusNode,
validator: phoneController.validator,
inputFormatters: phoneController.inputFormatter,
maxLength: phoneController.maxLength,
decoration: const InputDecoration(labelText: "Phone Number"),
),
copied to clipboard

Phone Form Field Controller #
This controller is used to validate Phone number. It uses InputFormatter.phoneNoFormatter, InputValidator.phoneValidator
PhoneFormFieldController phoneController = PhoneFormFieldController(const ValueKey("txtPhone"), maxlength: 10);
copied to clipboard



Arguments
Default Value
Description




key

ValueKey


maxlength
10



required
true
true - mandatory field it can't be empty


requiredText
Required!
Message to show if the field is in error state




Email Form Field Controller #
This controller is used to validate Email Field. It uses InputValidator.emailValidator
PhoneFormFieldController phoneController = PhoneFormFieldController(const ValueKey("txtPhone"), maxlength: 10);
copied to clipboard



Arguments
Default Value
Description




key

ValueKey


required
true
true - mandatory field it can't be empty


requiredText
Please enter a valid Email
Message to show if the field is in error state




Feedback #
You like the package ? Give me a thumbsup 👍

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.