provider
Use when setting up providers, consuming state, optimizing rebuilds, using ProxyProvider, or migrating from deprecated providers (Provider package).
npx skills add evanca/flutter-ai-rules --skill provider --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Provider Skill This skill defines how to correctly use the `provider` package in Flutter applications. --- ## 1. Provider Types | Provider | Use for | |---|---| | `Provider` | Exposing any immutable value | | `ChangeNotifierProvider` | Mutable state with `ChangeNotifier` | | `FutureProvider` | Exposing a `Future` result | | `StreamProvider` | Exposing a `Stream` | | `ProxyProvider` / `ChangeNotifierProxyProvider` | Objects that depend on other providers | --- ## 2. Setup ```dart MultiProvider( providers: [ Provider<Something>(create: (_) => Something()), ChangeNotifierProvider(create: (_) => MyNotifier()), FutureProvider<String>(create: (_) => fetchData(), initialData: ''), ], child: MyApp(), ) ``` - Use `MultiProvider` to group multiple providers and avoid deeply nested trees. - `ChangeNotifierProvider` **automatically disposes** the model when it is no longer needed. - **Never** create a provider's object from variables that can change over time — the object won't update when the variable changes. Use `ProxyProvider` instead. - If you have 150+ providers, consider mounting them over time (e.g., during a splash screen) rather than all at once to avoid `StackOverflowError`. --- #
- 1. Provider Types
- 2. Setup
- 3. Consuming State
- 4. ProxyProvider
- 5. Rules
- 6. Debugging
- 7. Migration: ValueListenableProvider
- References
What does the provider skill do?
Use when setting up providers, consuming state, optimizing rebuilds, using ProxyProvider, or migrating from deprecated providers (Provider package).
How do I install it?
Run `npx skills add evanca/flutter-ai-rules --skill provider --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From evanca/flutter-ai-rules, a repository with 604 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
