flutter_koin 1.0.0
flutter_koin: ^1.0.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.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.