VS Code Extensions
C

Clean Architecture Generator For Flutter

by Yerali

Generate Flutter Clean Architecture feature boilerplate with Data, Domain, and Presentation layers, supporting both Bloc and Cubit state management.

Downloads

30

Rating

5.0 / 5 (1)

Version

0.0.1

Last updated

Apr 04, 2026

Generate Clean Architecture boilerplate for Flutter features in seconds.

This extension helps you quickly scaffold a feature with a structured architecture, saving time and enforcing best practices.


Features

  • Generate full Clean Architecture structure
  • Supports Bloc and Cubit
  • Automatically creates:
    • Data layer
    • Domain layer
    • Presentation layer
  • Generates ready-to-use boilerplate code
  • Converts feature names from snake_case → PascalCase

Generated Structure

Example for feature: auth lib/features/auth/ ├── data/ │ ├── datasource/ │ │ ├── auth_remote_datasource.dart │ │ └── auth_local_datasource.dart │ ├── models/ │ └── repository/ │ └── auth_repository_impl.dart ├── domain/ │ ├── entity/ │ ├── repository/ │ │ └── auth_repository.dart │ └── usecase/ └── presentation/ ├── pages/ │ └── auth_page.dart ├── widgets/ └── bloc/ or cubit/ ├── auth_bloc.dart / auth_cubit.dart ├── auth_state.dart └── auth_event.dart (Bloc only)


Usage

  1. Open your Flutter project in VS Code
  2. Press: Ctrl + Shift + P
  3. Run: Create Clean Architecture Feature

Generated Boilerplate Includes

Data Layer

  • Remote & Local Datasources
  • Repository Implementation

Domain Layer

  • Repository Interface

Presentation Layer

  • Page (Flutter UI)
  • Bloc / Cubit (based on selection)
  • State & Event classes

Support

If you find this useful, consider leaving a ⭐ on the marketplace!