bloc_state_gen 1.1.0 copy "bloc_state_gen: ^1.1.0" to clipboard
bloc_state_gen: ^1.1.0 copied to clipboard

Generate helper extensions for Bloc and Cubit states with type-safe pattern matching and logging.

1.1.0 #

  • Features:

    • Upgraded dependencies to their latest stable versions:
      • analyzer: ^6.0.0^7.0.0
      • source_gen: ^1.4.0^2.0.0
      • meta: ^1.15.0^1.16.0
    • Improved documentation to meet pub.dev standards.
  • Fixes:

    • Resolved UNDEFINED_GETTER error (enclosingElement3) by using updated analyzer APIs.
    • Reformatted codebase with dart format to ensure compliance with Dart formatter standards.
    • Addressed static analysis warnings, improving code quality and maintainability.
  • Other Changes:

    • Maintained compatibility with the latest stable Dart and Flutter SDKs.

1.0.0 #

  • feat!: move annotation target from state to bloc/cubit class
  • feat: support state classes defined inside bloc/cubit, HydratedCubit/Bloc, ReplayCubit/Bloc classes
  • fix: update deprecated analyzer API usage (enclosingElement3)
  • fix: improve nested class detection
  • fix: enhance error handling for missing state classes
  • docs: update README with new inline state definition examples
  • docs: add migration guide for 1.0.0
  • chore: update minimum Dart SDK version to 2.17.0
  • chore: upgrade analyzer dependency

0.1.1+3 #

  • Documentation Updates:
    • Fixed dead example link in the README.md.
    • Removed the contribution guide section from the README.md.
    • Added a video example to the README.md for better understanding.

0.1.0+2 #

  • Update _getParameterName function:
    • Converts a class name to a parameter name in camelCase.
    • Cleans class names by removing common suffixes like State, Bloc, and Cubit.
    • Handles standardized names for common state types (e.g., Loading becomes onLoading).
    • Removes the parent class name prefix for custom states and converts them to camelCase. Examples:
    • LoadingStateonLoading
    • AuthenticatedUserStateonAuthenticated
    • SuccessBloconSuccess
    • CustomErroronCustomError

0.0.1 #

  • Initial release
  • Support for generating state extensions
  • Match pattern support
  • Logging utilities
3
likes
50
points
57
downloads

Publisher

unverified uploader

Weekly Downloads

Generate helper extensions for Bloc and Cubit states with type-safe pattern matching and logging.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

analyzer, build, flutter, meta, source_gen

More

Packages that depend on bloc_state_gen