flutter_koin 1.1.0
flutter_koin: ^1.1.0 copied to clipboard
A lightweight dependency injection library for Flutter with code generation, scoped lifecycles, and constructor injection.
Changelog #
All notable changes to flutter_koin will be documented in this file.
This project follows Semantic Versioning.
1.1.0 - 2026-10-25 #
Changed #
- Expanded dependency version constraints for
analyzer,build, andsource_gento support both legacy and modern Flutter projects. - Improved code generator compatibility across different versions of the Dart analyzer API.
- Updated constructor parameter inspection and type name resolution to support older and newer analyzer versions.
Fixed #
- Fixed code generation compatibility issues with analyzer 6.x and source_gen 1.x.
- Resolved generator API incompatibilities that prevented integration with older Flutter projects.
Documentation #
- Added DartDoc comments for
@Factory,@Scoped, and@RootScopedannotations and their public members.
1.0.0 - 2026-10-09 #
Added #
- Dependency injection container with root and feature scopes.
- Three dependency lifetimes:
@RootScoped,@Scoped, and@Factory. - Annotation-based registration generation using
build_runnerand.koin.dartfiles. - Constructor injection for required positional and named parameters.
- Interface bindings through the
bindAsannotation parameter. - Scope-aware dependency resolution and feature scope lifecycle management.
- Flutter integration with
KoinScopeHost,KoinScopeProvider, andKoinScopeMixin. - Automatic disposal of cached root-scoped and scoped instances, with support for
KoinDisposableand custom disposers. - Scope lifecycle observers and dependency resolution errors.
- Unit tests for the container and generator, plus integration tests for generated registrations.