bloc_state_gen 1.1.0
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.0source_gen:^1.4.0→^2.0.0meta:^1.15.0→^1.16.0
- Improved documentation to meet pub.dev standards.
- Upgraded dependencies to their latest stable versions:
-
Fixes:
- Resolved
UNDEFINED_GETTERerror (enclosingElement3) by using updated analyzer APIs. - Reformatted codebase with
dart formatto ensure compliance with Dart formatter standards. - Addressed static analysis warnings, improving code quality and maintainability.
- Resolved
-
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.mdfor better understanding.
- Fixed dead example link in the
0.1.0+2 #
- Update
_getParameterNamefunction:- Converts a class name to a parameter name in camelCase.
- Cleans class names by removing common suffixes like
State,Bloc, andCubit. - Handles standardized names for common state types (e.g.,
LoadingbecomesonLoading). - Removes the parent class name prefix for custom states and converts them to camelCase. Examples:
LoadingState→onLoadingAuthenticatedUserState→onAuthenticatedSuccessBloc→onSuccessCustomError→onCustomError
0.0.1 #
- Initial release
- Support for generating state extensions
- Match pattern support
- Logging utilities