Skip to main content

flutter_koin 1.0.0 copy "flutter_koin: ^1.0.0" to clipboard
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_runner and .koin.dart files.
  • Constructor injection for required positional and named parameters.
  • Interface bindings through the bindAs annotation parameter.
  • Scope-aware dependency resolution and feature scope lifecycle management.
  • Flutter integration with KoinScopeHost, KoinScopeProvider, and KoinScopeMixin.
  • Automatic disposal of cached root-scoped and scoped instances, with support for KoinDisposable and custom disposers.
  • Scope lifecycle observers and dependency resolution errors.
  • Unit tests for the container and generator, plus integration tests for generated registrations.
10
likes
140
points
124
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight dependency injection library for Flutter with code generation, scoped lifecycles, and constructor injection.

Repository (GitHub)
View/report issues

Topics

#dependency-injection #code-generation #service-locator #scopes #flutter

License

MIT (license)

Dependencies

analyzer, build, flutter, source_gen

More

Packages that depend on flutter_koin