flutter-layer-based-clean-architecture

Official

Structure Flutter apps with clean architecture.

Authorwildbitca
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Layer-based clean architecture helps Flutter teams avoid tangled dependencies by enforcing a strict Domain-Driven Design separation (Domain, Infrastructure, Application, and Presentation) so teams can reason about entities, repositories, mappers, and UI components independently and scale.

Core Features & Use Cases

  • Dependency flow: Presentation -> Application -> Domain <- Infrastructure; inward dependencies.
  • Pure Domain: No Flutter or Infrastructure dependencies in domain layer; DTOs mapped in infrastructure.
  • DTO mapping: Infrastructure maps DTOs to Domain Entities for UI safety.
  • IoC: Use get_it for injecting repository implementations into BLoCs/Cubits.
  • Anti-Patterns: No DTOs in UI; No Material in Domain; No Shared Prefs in Repo.

Quick Start

Organize a new Flutter project into domain, infrastructure, application, and presentation layers and implement the layer-based architecture.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: flutter-layer-based-clean-architecture
Download link: https://github.com/wildbitca/ai-resources/archive/main.zip#flutter-layer-based-clean-architecture

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.