# Flutter Stacked MVVM App Architecture

> Writes Flutter code in a proven Stacked MVVM style: Dio/Retrofit, dartz Either repositories, encrypted Hive CE, envied, VelocityX, @FormView.

Flutter Stacked MVVM App Architecture is a paid AI agent skill on Agensi by Fulberto Gilles-Christ TCHIAKPE, in Mobile Development. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Fulberto Gilles-Christ TCHIAKPE](https://www.agensi.io/creators/fulberto-dev)
- Category: [Mobile Development](https://www.agensi.io/skills/mobile-development)
- Version: 1.1.0
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/flutter-stacked-mvvm-app-architecture
- Tags: mobile-development, frontend-web-apps, apis-backend

## About this skill

Get your AI agent writing Flutter code the way experienced Stacked teams do: one consistent structure, the same names, the same packages on every screen. The patterns come from several Flutter apps running in production.

**What it does**
- Builds views, viewmodels, bottom sheets, dialogs and services with the Stacked CLI and registers them in `app.dart`
- Adds API calls as Dio + Retrofit services behind repositories that return `Either<Failure, T>` (dartz), with network-aware error handling
- Sets up encrypted local storage with Hive CE (key kept in `flutter_secure_storage`) and reactive services that follow it
- Configures environments with `envied`: a single `Env` for one environment, or `MultiEnv` + `AppConfig` for dev/prod via `--dart-define`
- Uses `@FormView` for multi-field forms and `setPin` for PIN/OTP, and asks you which one to use before writing input screens
- Builds UI with VelocityX and shared spacing constants, and shows toasts through a single `ToastService`

**How it behaves**
- Reads `pubspec.yaml`, `stacked.json` and nearby files first. When your project's conventions differ from the skill's, your project wins.
- Never edits generated files by hand, and lists the `stacked generate` / `build_runner` commands to run
- Runs `flutter analyze` on what it wrote

**Language note:** the skill's instructions are in French, and the UI strings and error messages it writes are in French by default. Code identifiers and file names are in English.

## Requires

- Flutter SDK
- Stacked CLI (recommended)

## Known limitations

Opinionated: does not use Bloc, Riverpod, Provider, GetX, freezed or go_router. In new projects, UI text and error messages are written in French by default (ask for another language, or it follows the language your project already uses). Does not touch android/ or ios/ unless asked.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Flutter Stacked MVVM App Architecture skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does it work with Bloc, Riverpod or Provider?

No. It deliberately sticks to Stacked MVVM and does not add Bloc, Riverpod, Provider, GetX, freezed or go_router.

### Will it overwrite my project's conventions?

No. It reads neighbouring files first, and when your project differs from the skill, your project's conventions win.

### Can it start a brand-new app?

Yes. It sets up StartupView, ToastService, encrypted Hive, envied config, the base widgets and stacked.json, plus a starter bottom sheet and dialog so the generated enums compile.

### Is the generated UI text in English?

UI strings and error messages are in French by default. Ask the agent for another language and it will follow your request.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
