# techapon/flutter-method-service architecture

> Architecture diagram of the GitHub repository techapon/flutter-method-service, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/techapon/flutter-method-service
- Repository: https://github.com/techapon/flutter-method-service

## Overview

Flutter Method CLI is a Windows command-line scaffolder for existing Flutter projects. The user launches the batch shortcut, chooses whether to create the shared `lib` structure or a named feature under `features`, and the PowerShell script creates the corresponding files and displays a tree. The README documents the workflow and capabilities, but no source excerpts are available, so internal call details beyond the documented batch-to-script handoff are not shown.

Main entry points: [`flutter_method_create_arch.ps1`](https://github.com/techapon/flutter-method-service/blob/main/flutter_method_create_arch.ps1) (PowerShell CLI), [`flutter_arch.bat`](https://github.com/techapon/flutter-method-service/blob/main/flutter_arch.bat) (Batch launcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launcher["CLI launch"]
  node_batch["Batch launcher<br/>[flutter_arch.bat]"]
  node_script["PowerShell CLI"]
end

subgraph group_scaffolding["Project scaffolding"]
  node_main["Main structure"]
  node_feature["Feature structure"]
end

node_user(("Developer"))
node_project["Flutter project files"]

node_user -->|"runs"| node_batch
node_batch -->|"runs script"| node_script
node_user -->|"selects option"| node_script
node_script -->|"creates structure"| node_main
node_script -->|"creates structure"| node_feature
node_main -->|"writes files"| node_project
node_feature -->|"writes files"| node_project

click node_batch "https://github.com/techapon/flutter-method-service/blob/main/flutter_arch.bat"
click node_script "https://github.com/techapon/flutter-method-service/blob/main/flutter_method_create_arch.ps1"
click node_main "https://github.com/techapon/flutter-method-service/blob/main/flutter_method_create_arch.ps1"
click node_feature "https://github.com/techapon/flutter-method-service/blob/main/flutter_method_create_arch.ps1"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_batch,node_script toneBlue
class node_main,node_feature toneAmber
class node_user,node_project toneIndigo
```

## Components

### CLI launch

- [Batch launcher](https://github.com/techapon/flutter-method-service/blob/main/flutter_arch.bat): `flutter_arch.bat`
- [PowerShell CLI](https://github.com/techapon/flutter-method-service/blob/main/flutter_method_create_arch.ps1): `flutter_method_create_arch.ps1`

### Project scaffolding

- [Main structure](https://github.com/techapon/flutter-method-service/blob/main/flutter_method_create_arch.ps1): `flutter_method_create_arch.ps1`
- [Feature structure](https://github.com/techapon/flutter-method-service/blob/main/flutter_method_create_arch.ps1): `flutter_method_create_arch.ps1`

### Other components

- **Developer**
- **Flutter project files**

## Connections

- Developer → Batch launcher: runs (evidence: `README.md`)
- Batch launcher → PowerShell CLI: runs script (evidence: `README.md`)
- Developer → PowerShell CLI: selects option (evidence: `README.md`)
- PowerShell CLI → Main structure: creates structure (evidence: `README.md`)
- PowerShell CLI → Feature structure: creates structure (evidence: `README.md`)
- Main structure → Flutter project files: writes files (evidence: `README.md`)
- Feature structure → Flutter project files: writes files (evidence: `README.md`)
