flutter-expert

Plan Flutter project architecture with clean layers and code examples.

Updated Feb 16, 2026
One-click install
npx skills add https://github.com/andrelucassvt/verify_local_purchase --skill flutter-expert-andrelucassvt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-expert
Source: https://github.com/andrelucassvt/verify_local_purchase/tree/main/.agents/skills/flutter-expert
Command: npx skills add https://github.com/andrelucassvt/verify_local_purchase --skill flutter-expert-andrelucassvt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Flutter Clean Architecture implementation guide (Presentation → Domain ← Data with BLoC + GetIt + GoRouter). Use before implementing any Flutter feature, screen, widget, service, or layer. Provides: decision flow for what to create (API vs local vs simple UI), layer-specific references (View, Cubit/State, Domain, Data, Service, DI, Navigation, Testing, Apple Guidelines), ready-to-use code examples (simple screen, API feature, service, widget, navigation, form), global rules for all layers, development cycle with recovery steps, advanced layout/theming guidance, and troubleshooting for common BLoC + GetIt + GoRouter errors.

Core Features & Use Cases

  • In-depth decision flow and architecture references to accelerate Flutter feature delivery.
  • Ready-to-use code samples for View, Cubit/State, Domain, Data, DI, Navigation, Testing, and guidelines.
  • Comprehensive playbooks for API-first and local UI scenarios, plus Apple guidelines and testing strategies.

Quick Start

Create a new Flutter feature by following the standard folder structure, implement a Cubit and View, configure DI, routing, and localization, then run your feature in isolation.

Frequently Asked Questions about flutter-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a Flutter clean architecture project with BLoC and GetIt?

Structure your Flutter project using Presentation, Domain, and Data layers. This clean architecture approach integrates Cubit/BLoC for state management, GetIt for dependency injection, and GoRouter for navigation.

What is the best way to implement dependency injection in Flutter clean architecture?

Implement dependency injection in Flutter clean architecture using GetIt. Configure DI setups for repositories, data sources, and services to properly decouple your Domain and Data layers.

How do I configure GoRouter navigation in a Flutter clean architecture setup?

Configure GoRouter navigation by establishing a dedicated routing reference that connects to your View components. The architecture provides ready-to-use code examples for navigation setup and routing.

When should I use DTOs and entities in Flutter clean architecture?

Use DTOs within the Data layer for API data mapping and entities within the Domain layer for business logic. This clean architecture encapsulates specific requirements for DTOs, entities, and repositories.

How do I write tests for a Flutter clean architecture feature using Cubit?

Write tests for Flutter clean architecture features by following the provided testing references and strategies. These guidelines cover testing for Cubit state management, API-backed flows, and local UI scenarios.

Why does my Flutter BLoC state management fail after adding GetIt dependencies?

BLoC failures with GetIt often stem from incorrect DI setup or missing repository bindings. This architecture includes troubleshooting references for common BLoC, GetIt, and GoRouter errors.