计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
flutter-dependency-injection【效率与协作】Configure service locator setup using injectable and get_it in Flutter. Use when wiring dependency injection with get_it or injectable.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
core/injection/
├── injection.dart # Initialization & setup
└── modules/ # Third-party dependency modules (Dio, Storage)
@injectable annotations; avoid manual registry calls.@LazySingleton for repositories, services, and data sources (init on demand).@injectable (Factory) for BLoCs to ensure state resets per instance. Never use @Singleton() for BLoCs.as: IService).@module for external instances (Dio, Hive, SharedPreferences).injectable resolves them automatically.See implementation examples for module registration and test mock swap patterns.
For module configuration and initialization templates: See references/REFERENCE.md.
getIt Calls: Inject via constructor instead of calling GetIt in UI build()@Singleton BLoCs: Always use @injectable (Factory) to ensure state resetsIOrderRepository)@injectable annotations instead of manual getIt.register calls in production codelayer-based-clean-architecture | testing
When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant: