flutter_custom_textfields 0.0.5+1
flutter_custom_textfields: ^0.0.5+1 copied to clipboard
A Flutter package with customizable text fields, regex validation, and OTP input support with leading/trailing icons.
π§© Flutter Custom TextFields #
A Flutter package that provides customizable text fields with built-in validation for common input types. Features include email, phone number, username, full name, OTP, password, and confirm password fields with configurable validation and UI options.
β¨ Features #
-
π§ TextFields with leading icons for:
- Phone Number
- Username
- Full Name
- OTP (4 digit)
- Pin Code
-
π TextFields with both leading and trailing icons for:
- Password
- Confirm Password
-
π’ OTP Input with customizable length (4 digits)
-
β Built-in Regex-based validation for all input types
-
π§© Easy integration and customization
π Getting Started #
Add this to your pubspec.yaml
:
dependencies: flutter_custom_textfields: ^0.0.4
π οΈ How to Use #
You can easily use pre-built custom text fields for various input types like:
Email Username Full Name OTP Phone Number Password Confirm Password Pin Code To see how these fields are implemented and how they can be reused in real-time applications, explore the Example folder β especially the FormExample class. It demonstrates practical usage and integration in a complete form setup.
πΈ Screenshots #
Here's how some of the custom text fields look in a sample form:
[Example of Flutter Custom TextFields in action]
[Example of Flutter Custom TextFields in action]