Flutter Stacked MVVM App Architecture

    by Fulberto Gilles-Christ TCHIAKPE

    1

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

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Flutter Stacked MVVM App Architecture

    Example session with this skill installed

    Adds a login screen (phone number + password) that calls POST /auth/login and redirects to the home page.

    • Read your context and instructions
    • Compiled the flutter stacked mvvm

    Asks whether to use @FormView (recommends it for the 2 fields), then creates login_view.dart with @FormView, LoginViewModel extends FormViewModel with a loginBusyKey, AuthService Retrofit method, AuthRepository returning Either<Failure, Unit>, registers the route in app.dart and lists the build_runner command to run.

    Connects securely to your tools. The creator never sees your data.

    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.

    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

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 7 days ago

    Software
    Flutter SDKStacked CLI (recommended)

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    File Scopes

    Flutter
    project
    folder
    (lib/
    test/
    pubspec.yaml
    stacked.json)

    Runs stacked CLI, build_runner and flutter analyze. Never reads or prints .env files.

    Listed7 days ago

    What's inside

    Frequently Asked Questions

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

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

    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.

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

    New in Mobile Development

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Mobile Development.