bloc_form_plus 0.2.3
bloc_form_plus: ^0.2.3 copied to clipboard
Easy Form State Management using BLoC pattern. Separate the Form State and Business Logic from the User Interface. Async Validation, Progress, Dynamic fields, and more.
0.2.3 #
- Minor fix of changelog arrangement
0.2.2 #
FieldBlocValidators Update #
Date: 2025-09-20
Changes:
-
Added New Validators:
-
minLength(int min) -
maxLength(int max) -
phone() -
number() -
url() -
date()(YYYY-MM-DD) -
regex(String pattern) -
Customizable Error Messages:
- All validators now support an optional
errorMessageparameter to override default messages per field. - Example:
validator: (value) => FieldBlocValidators.minLength(8, errorMessage: "Must be 8+ chars")(value);
- All validators now support an optional
-
-
Improved Documentation & Comments:
-
Added clear DartDoc comments for each validator, explaining behavior, return value, and usage.
-
Backward Compatibility:
- Existing validators (
required,email,passwordMin6Chars,confirmPassword) remain unchanged in usage. - Supports both legacy single-error and new override/customization usage.
- Existing validators (
-
0.1.3 #
-
Changed from InputDecorationTheme to InputDecorationThemeData -
Upgrade to support flutter 3.35 -
Upgrade Bloc to latest version 9.1.1
0.1.2 #
β Upgrade
Upgraded project to Flutter 3.32.0, ensuring compatibility with the latest Dart SDK and Flutter framework features. #
π Migration #
-
Migrated from deprecated: -
MaterialState β WidgetState -
MaterialStateProperty β WidgetStateProperty -
Replaced deprecated Opacity usage with modern withValues alternatives. -
Updated widget code to remove redundant constructors using super to streamline class initialization.
π§Ή Cleanup #
-
Removed redundant constructor boilerplate by leveraging super where applicable. -
Fixed invalid use of private types in public APIs to comply with Dart 3+ type safety.
π Fixes #
Fixed common issue with BuildContext usage across async gaps, avoiding errors caused by calling context after await.
0.1.0 #
- Initial Version of the library.