LaunchKit · 2026

Setup & Installation

npx skills add https://github.com/flutter/skills --skill flutter-managing-state
or paste the link and ask your coding assistant to install it
https://github.com/flutter/skills/tree/main/skills/flutter-managing-state
View on GitHub

What This Skill Does

Helps manage both local widget state and shared application state in Flutter apps. Covers ephemeral state with setState, app-wide state with the Provider package, and walks through implementing the MVVM pattern with ChangeNotifier and unidirectional data flow.

Gives you a concrete decision framework and step-by-step MVVM setup instead of piecing together scattered Flutter docs and blog posts on your own.

When to use it

  • Setting up a shopping cart that syncs across multiple screens
  • Choosing between setState and Provider for a new feature
  • Wiring up a ChangeNotifier ViewModel to a widget tree
  • Refactoring tightly coupled widget state into a repository pattern
  • Debugging missing notifyListeners calls that prevent UI updates