bloc_form_plus 0.2.2 copy "bloc_form_plus: ^0.2.2" to clipboard
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);
        
  • 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.
0
likes
145
points
165
downloads

Publisher

verified publisherdukanitech.com

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

bloc, collection, equatable, meta, rxdart, uuid

More

Packages that depend on bloc_form_plus