implement-view-model

Community

Scale Flutter apps with Cubit-driven ViewModel.

Authorandrelucassvt
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Flutter projects often struggle with inconsistent state management; this guide provides a standard approach to implementing ViewModel layers with Cubit and sealed States, reducing boilerplate and aligning architecture.

Core Features & Use Cases

  • Provides templates for creating view model states and cubits, including initial, loading, loaded, and error states.
  • Enforces best practices: immutable sealed states, constructors with const, and repository/storage-based dependencies for data access.
  • Use cases cover local persistence, repository-driven data flows, and navigation-state handling.

Quick Start

Create a new Flutter feature screen and wire it to a Cubit-based view model following the templates in this guide.

Dependency Matrix

Required Modules

None required

Components

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: implement-view-model
Download link: https://github.com/andrelucassvt/CleanMacForDevsWeb/archive/main.zip#implement-view-model

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.