What problem does it solve?
Configures dependency injection (GetIt) for Flutter projects following the project architecture. Use whenever adding or modifying registrations in lib/config/inject/**. Covers registerFactory vs registerLazySingleton, registration order, multi-flavor setup, and common mistakes. Activate even when the user says 'register this class in the injector', 'how do I inject this dependency', 'GetIt is throwing an error', 'add this to AppInjector', 'should this be a singleton or factory?', 'I created a new service, where do I register it?', or 'dependency not found' without explicitly mentioning GetIt or registerLazySingleton.
Core Features & Use Cases
- Provides a standardized pattern for registering services, data sources, repos, and cubits.
- Enforces registerFactory for cubits and registerLazySingleton for services, repositories, and data sources.
- Supports multi-flavor setups and safe dependency resolution via AppInjector.
Quick Start
Configure AppInjector by calling setupDependencies with a flavor, then resolve cubits via AppInjector.