flutter-di-usage
Installation
SKILL.md
DI Usage
How to respond
- If the user invoked this skill without a concrete task, start by explaining what this plugin does and when it should be used.
- Show how to use it through concrete DI tasks, especially provider wiring and scope decisions.
- Point to the main rule here, or route to
flutter-blocwhen the task is really about cubit logic after dependencies are provided. - If the user already gave a concrete DI task, briefly explain why this plugin fits and then do the work.
- Do not reply with filler like "skill loaded", "ready for the task", or "what would you like to do?" before explaining the plugin.
What this plugin does
- Covers LeanCode
provider-based dependency injection in Flutter features. - Covers provider scope, page-scoped dependencies, and
GlobalProviders. - Covers creating dependency values directly in the provider's
createfunction. - Covers simple asynchronous global dependency initialization in
main().