unyo-dependency-injection
CommunityMaster GetIt DI in Unyo for robust apps.
AuthorK3vinb5
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Centralizes and standardizes dependency injection for the Unyo Flutter app using GetIt, enabling consistent registration, resolution, and debugging across services, repositories, cubits, and notifiers.
Core Features & Use Cases
- Clear two-phase initialization guidance (setupLocator before runApp and setupLocatorAfterHiveInit after Hive initializes) to accommodate async platform dependencies and Hive storage.
- Detailed registration patterns: singletons, lazy singletons, factories, and async singletons with support for named instances and safe resolution.
- Robust wiring and guardrails against common pitfalls like missing registrations, circular dependencies, and improper scoping across components.
- Real-world use: wire a new Studio feature by registering its notifier, repository, and cubit in the correct phase.
Quick Start
Configure the locator to register dependencies before running the app.
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: unyo-dependency-injection Download link: https://github.com/K3vinb5/Unyo/archive/main.zip#unyo-dependency-injection 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.