A comprehensive Flutter package for form validation, offering built-in support for text, email, password, numeric, date, and advanced custom validations.
-
Open your
pubspec.yamlfile and add this entry:advance_form_validators: ^0.0.1+1
OR just run
flutter pub add advance_form_validatorsusing your preferred terminal app. -
Then run
flutter pub get. -
Import this library into your code:
import 'package:nepali_month_year_picker/nepali_month_year_picker.dart';
-
Usage in code:
TextFormField( validator: DateValidator( validators: [ Required(), BeforeDate(beforeDate: DateTime(2000)), ], ).validate, autovalidateMode: AutovalidateMode.onUserInteraction, ),
This project is licensed under the MIT License - see the LICENSE file for details.