auto_injector
Automatic Dependency Injection System, but without build_runner :)
2.2.0
104K downloads/mo
#1109 most downloaded on pub.dev
Flutterando/auto_injector
What this package is like to depend on
Last release 2 months ago
24 Jun 2026
Release timing varies
gaps range from 8 days to 12 months
Most releases are documented
notes for 18 of 28 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
40 releases · first in 2023
1 release in the last 12 months
see the full history below
Release timeline
40 releases · Jan 2023 to Jun 2026Releases
latest 40-
2.2.024 Jun 2026Release notes
Open source →What's new
Added
addInjector(injector, resolveUpward: true)— a nested injector can now resolve the params of its own binds against an ancestor scope as a fallback, not only its own subtree. Default isfalse, preserving the previous downward-only behavior. Local/downward binds always take precedence; the ancestor is consulted only when a bind is not found locally. Mutual upward links are rejected eagerly with the newUpwardResolutionCycleexception.
Fixed
LayersGraphdispose-listener leak — re-runningcommit()on a long-lived injector stacked one dispose listener per surviving inner injector on every commit, growing unbounded across re-commits and retaining graph closures. Listener (re)registration is now idempotent, keeping the listener count stable.
🤖 Generated with Claude Code
Release notes
Open source →- Add:
addInjector(injector, resolveUpward: true)lets a nested injector resolve the params of its own binds against an ancestor scope as a fallback (defaultfalsekeeps the previous downward-only behavior). Local/downward binds always take precedence; mutual upward links throwUpwardResolutionCycle. - Fix:
LayersGraphno longer leaks dispose listeners. Re-runningcommit()on a long-lived injector kept stacking one dispose listener per surviving inner injector on every commit; listener (re)registration is now idempotent.
-
2.1.115 Jun 2025 -
2.1.022 Feb 2025 -
2.0.506 Aug 2024 -
2.0.425 Mar 2024 -
2.0.328 Nov 2023 -
2.0.201 Sep 2023 -
2.0.101 Sep 2023Nothing published for this version
-
2.0.024 Aug 2023Release notes
Open source →- fix: replace with others tags
- fix: Custom split to generics datas in many levels (thanks @luanbatistadev)
- add: Multi Injector (thanks @davidsdearaujo).
- add: Get and register instances by name (thanks toshi @toshiossada).
-
2.0.0+124 Aug 2023Nothing published for this version
-
2.0.0+224 Aug 2023Nothing published for this version
-
1.2.009 Aug 2023Nothing published for this version
-
1.1.105 Aug 2023 -
1.1.030 Jul 2023Nothing published for this version
-
1.1.0+130 Jul 2023Nothing published for this version
-
1.1.0+230 Jul 2023Nothing published for this version
-
1.1.0+330 Jul 2023Nothing published for this version
-
1.1.0+431 Jul 2023 -
1.0.529 Jul 2023Nothing published for this version
-
1.0.5+130 Jul 2023Nothing published for this version
-
1.0.5+230 Jul 2023 -
1.0.430 Jun 2023 -
1.0.304 Jun 2023 -
1.0.211 Feb 2023 -
1.0.2+108 Mar 2023 -
1.0.2+208 Mar 2023 -
1.0.131 Jan 2023 -
1.0.030 Jan 2023 -
0.0.1-alpha.1126 Jan 2023 pre-releaseNothing published for this version
-
0.0.1-alpha.1026 Jan 2023 pre-releaseNothing published for this version
-
0.0.1-alpha.926 Jan 2023 pre-releaseNothing published for this version
-
0.0.1-alpha.826 Jan 2023 pre-releaseNothing published for this version
-
0.0.1-alpha.726 Jan 2023 pre-releaseNothing published for this version
-
0.0.1-alpha.624 Jan 2023 pre-releaseNothing published for this version
-
0.0.1-alpha.523 Jan 2023 pre-releaseNothing published for this version
-
0.0.1-alpha.423 Jan 2023 pre-releaseNothing published for this version
-
0.0.1-alpha.315 Jan 2023 pre-releaseNothing published for this version
-
0.0.1-alpha.209 Jan 2023 pre-releaseNothing published for this version
-
0.0.1-alpha.107 Jan 2023 pre-releaseNothing published for this version
-
0.0.1-alpha06 Jan 2023 pre-releaseNothing published for this version