configure-di
CommunityConfigure Flutter DI with GetIt confidently.
System Documentation
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.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: configure-di Download link: https://github.com/andrelucassvt/CleanMacForDevsWeb/archive/main.zip#configure-di Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.