Fancy Containers
flutter textfield validation lets you validate different textform fields in your Flutter app.
Installation
- Add the latest version of package to your pubspec.yaml (and run
dart pub get
):
dependencies:
flutter_textfield_validation: ^0.0.1
- Import the package and use it in your Flutter App.
import 'package:flutter_textfield_validation/flutter_textfield_validation.dart';
Example
There are a number of properties that you can modify:
- Email Validation validateEmail() 2.Password Validation validatePassword() 3.Name Validation validateName() 4.Phone Validation validatePhone() 5.Otp Validation validateOtp() 6.Dob Validation validateDob() 7.Country code Validation validateCountryCode1() 8.State code Validation validateState() 9.City code Validation validateCity() 10.Pin code Validation validatePincode() 11.Post code Validation validatePostCode() 12.Address Validation validateAddress()
|