# kevinzhang19870314/flutter_getx_boilerplate architecture

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

- Interactive diagram: https://gitdiagram.com/kevinzhang19870314/flutter_getx_boilerplate
- Repository: https://github.com/kevinzhang19870314/flutter_getx_boilerplate

## Overview

This is a Flutter/GetX starter app intended to be adapted as a project template. Its principal user flow is app startup into splash and routing, then authentication or the home experience; the README also highlights REST access, dependency management, themes, localization, and shared UI. The Dart implementation was not excerpted, so feature components and some connections are supported only by the README and tree; unverified runtime calls are omitted or dashed.

Main entry points: [`lib/main.dart`](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/main.dart) (App Entry), [`lib/api/api.dart`](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/api/api.dart) (REST API), [`lib/routes/app_pages.dart`](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/routes/app_pages.dart) (Route Configuration), [`lib/modules/auth/auth_controller.dart`](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/modules/auth/auth_controller.dart) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App Framework"]
  node_entry["App Entry<br/>[main.dart]"]
  node_bindings["App Bindings<br/>[app_binding.dart]"]
  node_dependencies["Dependency Injection<br/>[di.dart]"]
  node_routing["Route Configuration<br/>[app_pages.dart]"]
end

subgraph group_features["User Features"]
  node_splash["Splash"]
  node_auth["Authentication"]
  node_home["Home"]
  node_home_tabs["Home Tabs"]
  node_profile["Profile<br/>[me.dart]"]
  node_bank_cards["Bank Cards<br/>[cards_screen.dart]"]
end

subgraph group_services["Data Services"]
  node_api["REST API<br/>[api.dart]"]
  node_api_provider["API Provider<br/>[api_provider.dart]"]
  node_interceptors["API Interceptors"]
  node_api_repository["API Repository"]
  node_models["Request/Response Models"]
  node_storage["Storage Service"]
end

subgraph group_presentation["Shared Presentation"]
  node_translations["Translations"]
  node_theme["Theme<br/>[theme_data.dart]"]
  node_shared_widgets["Shared Widgets"]
end

node_user(("App User"))
node_reqres{{"ReqRes API"}}

node_user -->|"starts app"| node_entry
node_entry -.->|"sets up"| node_bindings
node_entry -.->|"starts routes"| node_routing
node_routing -.->|"routes to"| node_splash
node_routing -->|"routes to"| node_auth
node_routing -->|"routes to"| node_home
node_auth -.->|"uses REST"| node_api
node_api -.->|"delegates requests"| node_api_provider
node_api_provider -->|"applies"| node_interceptors
node_api_repository -.->|"accesses"| node_api
node_api -->|"uses entities"| node_models
node_api -->|"sends requests"| node_reqres
node_bindings -->|"sets up dependencies"| node_dependencies
node_home -->|"shows tabs"| node_home_tabs
node_home_tabs -.->|"includes profile"| node_profile
node_profile -.->|"opens cards"| node_bank_cards
node_entry -->|"configures language"| node_translations
node_entry -->|"configures theme"| node_theme
node_auth -.->|"uses controls"| node_shared_widgets
node_home -.->|"uses controls"| node_shared_widgets
node_dependencies -->|"provides storage"| node_storage

click node_entry "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/main.dart"
click node_bindings "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/app_binding.dart"
click node_dependencies "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/di.dart"
click node_routing "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/routes/app_pages.dart"
click node_splash "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/modules/splash/splash_controller.dart"
click node_auth "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/modules/auth/auth_controller.dart"
click node_home "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/modules/home/home_controller.dart"
click node_home_tabs "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/tree/master/lib/modules/home/tabs"
click node_profile "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/modules/me/me.dart"
click node_bank_cards "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/modules/me/cards/cards_screen.dart"
click node_api "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/api/api.dart"
click node_api_provider "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/api/api_provider.dart"
click node_interceptors "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/tree/master/lib/api/interceptors"
click node_api_repository "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/api/api_repository.dart"
click node_models "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/tree/master/lib/models"
click node_storage "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/shared/services/storage_service.dart"
click node_translations "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/lang/translation_service.dart"
click node_theme "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/theme/theme_data.dart"
click node_shared_widgets "https://github.com/kevinzhang19870314/flutter_getx_boilerplate/tree/master/lib/shared/widgets"

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_entry,node_bindings,node_dependencies,node_routing,node_user toneBlue
class node_splash,node_auth,node_home,node_home_tabs,node_profile,node_bank_cards toneAmber
class node_api,node_api_provider,node_interceptors,node_api_repository,node_models,node_storage,node_reqres toneMint
class node_translations,node_theme,node_shared_widgets toneRose
```

## Components

### App Framework

- [App Entry](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/main.dart): `lib/main.dart`
- [App Bindings](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/app_binding.dart): `lib/app_binding.dart`
- [Dependency Injection](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/di.dart): `lib/di.dart`
- [Route Configuration](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/routes/app_pages.dart): `lib/routes/app_pages.dart`

### User Features

- [Splash](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/modules/splash/splash_controller.dart): `lib/modules/splash/splash_controller.dart`
- [Authentication](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/modules/auth/auth_controller.dart): `lib/modules/auth/auth_controller.dart`
- [Home](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/modules/home/home_controller.dart): `lib/modules/home/home_controller.dart`
- [Home Tabs](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/tree/master/lib/modules/home/tabs): `lib/modules/home/tabs`
- [Profile](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/modules/me/me.dart): `lib/modules/me/me.dart`
- [Bank Cards](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/modules/me/cards/cards_screen.dart): `lib/modules/me/cards/cards_screen.dart`

### Data Services

- [REST API](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/api/api.dart): `lib/api/api.dart`
- [API Provider](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/api/api_provider.dart): `lib/api/api_provider.dart`
- [API Interceptors](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/tree/master/lib/api/interceptors): `lib/api/interceptors`
- [API Repository](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/api/api_repository.dart): `lib/api/api_repository.dart`
- [Request/Response Models](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/tree/master/lib/models): `lib/models`
- [Storage Service](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/shared/services/storage_service.dart): `lib/shared/services/storage_service.dart`

### Shared Presentation

- [Translations](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/lang/translation_service.dart): `lib/lang/translation_service.dart`
- [Theme](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/blob/master/lib/theme/theme_data.dart): `lib/theme/theme_data.dart`
- [Shared Widgets](https://github.com/kevinzhang19870314/flutter_getx_boilerplate/tree/master/lib/shared/widgets): `lib/shared/widgets`

### Other components

- **App User**
- **ReqRes API**

## Connections

- App User → App Entry: starts app (evidence: `README.md`)
- App Entry → App Bindings: sets up
- App Entry → Route Configuration: starts routes
- Route Configuration → Splash: routes to
- Route Configuration → Authentication: routes to (evidence: `README.md`)
- Route Configuration → Home: routes to (evidence: `README.md`)
- Authentication → REST API: uses REST
- REST API → API Provider: delegates requests
- API Provider → API Interceptors: applies (evidence: `README.md`)
- API Repository → REST API: accesses
- REST API → Request/Response Models: uses entities (evidence: `README.md`)
- REST API → ReqRes API: sends requests (evidence: `README.md`)
- App Bindings → Dependency Injection: sets up dependencies (evidence: `README.md`)
- Home → Home Tabs: shows tabs (evidence: `README.md`)
- Home Tabs → Profile: includes profile
- Profile → Bank Cards: opens cards
- App Entry → Translations: configures language (evidence: `README.md`)
- App Entry → Theme: configures theme (evidence: `README.md`)
- Authentication → Shared Widgets: uses controls
- Home → Shared Widgets: uses controls
- Dependency Injection → Storage Service: provides storage (evidence: `README.md`)
