injectable
Injectable is a convenient code generator for get_it. Inspired by Angular DI, Guice DI and inject.dart.
3.0.0
1000K downloads/mo
#92 most downloaded on pub.dev
Milad-Akarie/injectable
What this package is like to depend on
Last release 4 months ago
20 Apr 2026
Release timing varies
gaps range from 8 days to 10 months
Rarely documented
notes for 9 of 53 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
54 releases · first in 2020
9 releases in the last 12 months
see the full history below
Release timeline
54 releases · Jan 2020 to Apr 2026Releases
latest 54-
3.0.020 Apr 2026Nothing published for this version
-
2.7.104 Dec 2025 -
2.7.1+106 Dec 2025Nothing published for this version
-
2.7.1+206 Dec 2025Nothing published for this version
-
2.7.1+322 Dec 2025Nothing published for this version
-
2.7.1+422 Dec 2025Nothing published for this version
-
2.7.025 Nov 2025 -
2.6.007 Nov 2025Nothing published for this version
-
2.5.229 Sep 2025Nothing published for this version
-
2.5.129 Jul 2025Nothing published for this version
-
2.5.003 Oct 2024Nothing published for this version
-
2.4.421 Jul 2024Nothing published for this version
-
2.4.321 Jul 2024Nothing published for this version
-
2.4.218 May 2024Nothing published for this version
-
2.4.127 Mar 2024Nothing published for this version
-
2.4.013 Mar 2024Nothing published for this version
-
2.3.513 Mar 2024Nothing published for this version
-
2.3.412 Mar 2024Nothing published for this version
-
2.3.310 Mar 2024Release notes
Open source →- Fix Postpone singleton initialisation to respect environment filters by @lrampazzo
-
2.3.209 Oct 2023Nothing published for this version
-
2.3.105 Oct 2023Nothing published for this version
-
2.3.017 Aug 2023 -
2.2.005 Aug 2023Nothing published for this version
-
2.1.230 May 2023Nothing published for this version
-
2.1.125 Mar 2023Nothing published for this version
-
2.1.029 Nov 2022Nothing published for this version
-
2.0.122 Nov 2022Nothing published for this version
-
2.0.020 Nov 2022Release notes
Open source →- Add support for micro packages
- Add support for external package modules
- Add support for manual dependencies ordering thanks to @casvanluijtelaar
- Add support for GetIt scopes
- Add @PostConstruct annotation to execute sync/async code after construction
- Add preResolve to @FactoryMethod annotation
- Add throwOnMissingDependencies flag to @InjectableInit annotation
- Change asExtension default value to true [breaking change]
- Change initializerName default value to 'init' [breaking change]
-
1.5.402 Nov 2022Nothing published for this version
-
1.5.308 Jan 2022Nothing published for this version
-
1.5.015 Aug 2021Nothing published for this version
-
1.4.123 May 2021Nothing published for this version
-
1.4.007 May 2021Nothing published for this version
-
1.3.026 Apr 2021Nothing published for this version
-
1.2.220 Mar 2021Nothing published for this version
-
1.2.119 Mar 2021Nothing published for this version
-
1.2.005 Mar 2021Nothing published for this version
-
1.2.0-nullsafety27 Feb 2021 pre-releaseNothing published for this version
-
1.1.227 Feb 2021Nothing published for this version
-
1.1.020 Feb 2021Nothing published for this version
-
1.0.730 Dec 2020Nothing published for this version
-
1.0.510 Oct 2020Nothing published for this version
-
1.0.405 Aug 2020Nothing published for this version
-
1.0.221 Jul 2020Nothing published for this version
-
1.0.019 Jul 2020Release notes
Open source →- Add support for multi environments (annotation & inlined)
- Add generation-time check for duplicate dependencies under the same environment
- Fix 3rd party imports from src instead of library file issue
- Change generated file extension to .config.dart
- Change generated file applies to most of effective dart rules including preferring relative imports
- Clean up some code
-
1.0.0+120 Jul 2020Nothing published for this version
-
0.4.016 May 2020Release notes
Open source →- Change Methods inside of register modules are treated as factory methods now, so all params are considered injected params unless annotated with @factoryParam.
- Change registerModule is now replaced with @module
- Change RegisterAs(Type) Annotation is now replaced with @Injectable(as:Type)
- Change Singleton.Lazy() is replaced with @LazySingleton()
- Add generateForDir property to @InjectableInt to specify what directories to generate for.
- Fix imports issue when working with bin directory
-
0.4.0+131 May 2020Nothing published for this version
-
0.3.004 Mar 2020Release notes
Open source →- add support for GetIt 4.0.0
- fix generic types are registered as dynamic
- fix unresolved future when registering asynchronous dependencies
- change asynchronous dependencies will be registered using async factory unless annotated with @preResolve
-
0.2.324 Feb 2020Nothing published for this version
-
0.2.214 Feb 2020Nothing published for this version
-
0.2.111 Feb 2020Nothing published for this version
-
0.2.009 Feb 2020Release notes
Open source →- You now need to pass in your getIt instance to @initGetIt() func
- Rename @Bind to @RegisterAs to avoid confusion because, now we're annotating the implementation not the abstract.
- Add @factoryMethod annotation to mark named factories and static create methods.
- Add @registerModule annotation to support registering third party types.
- Fix eager singletons are registered before their dependencies.
-
0.1.028 Jan 2020Nothing published for this version