bloc_form_plus 0.2.2
bloc_form_plus: ^0.2.2 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.1.0 #
- Initial Version of the library.
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.3 #
-
Changed from InputDecorationTheme to InputDecorationThemeData
-
Upgrade to support flutter 3.35
-
Upgrade Bloc to latest version 9.1.1
0.2.0 #
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
errorMessage
parameter 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 (
-