# alibaba/flutter-go architecture

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

- Interactive diagram: https://gitdiagram.com/alibaba/flutter-go
- Repository: https://github.com/alibaba/flutter-go

## Overview

FlutterGo is a Flutter mobile app centered on browsing Flutter widget examples, with catalog pages, demo pages, search, collections, and user/account screens represented in the tree. A separate Dart CLI provides commands for creating pages and demos and building lists. The README excerpt only announces that the project is paused; it does not document product flows. Since the sampled source does not include the Dart app modules, the feature links below are unverified rather than asserted as confirmed calls.

Main entry points: [`lib/routers`](https://github.com/alibaba/flutter-go/tree/master/lib/routers) (App Navigation), [`lib/views/first_page`](https://github.com/alibaba/flutter-go/tree/master/lib/views/first_page) (Home and Categories), [`lib/views/widget_page/widget_page.dart`](https://github.com/alibaba/flutter-go/blob/master/lib/views/widget_page/widget_page.dart) (Widget Catalog), [`go-cli/src/cli_command_runder.dart`](https://github.com/alibaba/flutter-go/blob/master/go-cli/src/cli_command_runder.dart) (CLI Commands)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Flutter App"]
  node_flutter["Flutter App<br/>[main.dart]"]
  node_navigation["App Navigation"]
end

subgraph group_catalog["Widget Catalog"]
  node_home["Home and Categories"]
  node_search["Widget Search<br/>[search_page.dart]"]
  node_widget_catalog["Widget Catalog<br/>[widget_page.dart]"]
  node_widget_demos["Widget Demos"]
  node_standard_pages["Standard Pages"]
  node_demo_pages["Demo Pages"]
  node_industry["Industry Data"]
  node_api["API Client<br/>[api.dart]"]
end

subgraph group_account["User Features"]
  node_collections["Collections"]
  node_login["Login<br/>[login_page.dart]"]
  node_user_profile["User Profile<br/>[user_page.dart]"]
  node_local_state["Local Preferences"]
end

subgraph group_cli["Dart CLI"]
  node_cli["CLI Commands"]
  node_cli_page["Create Pages<br/>[create_page.dart]"]
  node_cli_demo["Create Demos<br/>[create_demo.dart]"]
  node_cli_build["Build Lists<br/>[build.dart]"]
end

node_user(("App User"))

node_user -.->|"uses"| node_flutter
node_flutter -.->|"routes through"| node_navigation
node_navigation -.->|"opens"| node_home
node_home -.->|"offers"| node_search
node_home -.->|"browses"| node_widget_catalog
node_widget_catalog -.->|"opens examples"| node_widget_demos
node_widget_catalog -.->|"opens"| node_standard_pages
node_widget_catalog -.->|"opens"| node_demo_pages
node_home -.->|"loads catalog"| node_industry
node_industry -.->|"requests data"| node_api
node_navigation -.->|"opens"| node_collections
node_navigation -.->|"opens"| node_login
node_navigation -.->|"opens"| node_user_profile
node_collections -.->|"uses preferences"| node_local_state
node_cli -.->|"dispatches"| node_cli_page
node_cli -.->|"dispatches"| node_cli_demo
node_cli -.->|"dispatches"| node_cli_build

click node_flutter "https://github.com/alibaba/flutter-go/blob/master/lib/main.dart"
click node_navigation "https://github.com/alibaba/flutter-go/tree/master/lib/routers"
click node_home "https://github.com/alibaba/flutter-go/tree/master/lib/views/first_page"
click node_search "https://github.com/alibaba/flutter-go/blob/master/lib/views/first_page/search_page.dart"
click node_widget_catalog "https://github.com/alibaba/flutter-go/blob/master/lib/views/widget_page/widget_page.dart"
click node_widget_demos "https://github.com/alibaba/flutter-go/tree/master/lib/widgets"
click node_standard_pages "https://github.com/alibaba/flutter-go/tree/master/lib/standard_pages"
click node_demo_pages "https://github.com/alibaba/flutter-go/tree/master/lib/page_demo_package"
click node_industry "https://github.com/alibaba/flutter-go/tree/master/lib/blocs"
click node_api "https://github.com/alibaba/flutter-go/blob/master/lib/api/api.dart"
click node_collections "https://github.com/alibaba/flutter-go/tree/master/lib/views/collection_page"
click node_login "https://github.com/alibaba/flutter-go/blob/master/lib/views/login_page/login_page.dart"
click node_user_profile "https://github.com/alibaba/flutter-go/blob/master/lib/views/user_page/user_page.dart"
click node_local_state "https://github.com/alibaba/flutter-go/blob/master/lib/utils/shared_preferences.dart"
click node_cli "https://github.com/alibaba/flutter-go/blob/master/go-cli/src/cli_command_runder.dart"
click node_cli_page "https://github.com/alibaba/flutter-go/blob/master/go-cli/src/command/create_page.dart"
click node_cli_demo "https://github.com/alibaba/flutter-go/blob/master/go-cli/src/command/create_demo.dart"
click node_cli_build "https://github.com/alibaba/flutter-go/blob/master/go-cli/src/command/build.dart"

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_flutter,node_navigation,node_user toneBlue
class node_home,node_search,node_widget_catalog,node_widget_demos,node_standard_pages,node_demo_pages,node_industry,node_api toneAmber
class node_collections,node_login,node_user_profile,node_local_state toneMint
class node_cli,node_cli_page,node_cli_demo,node_cli_build toneRose
```

## Components

### Flutter App

- [Flutter App](https://github.com/alibaba/flutter-go/blob/master/lib/main.dart): `lib/main.dart`
- [App Navigation](https://github.com/alibaba/flutter-go/tree/master/lib/routers): `lib/routers`

### Widget Catalog

- [Home and Categories](https://github.com/alibaba/flutter-go/tree/master/lib/views/first_page): `lib/views/first_page`
- [Widget Search](https://github.com/alibaba/flutter-go/blob/master/lib/views/first_page/search_page.dart): `lib/views/first_page/search_page.dart`
- [Widget Catalog](https://github.com/alibaba/flutter-go/blob/master/lib/views/widget_page/widget_page.dart): `lib/views/widget_page/widget_page.dart`
- [Widget Demos](https://github.com/alibaba/flutter-go/tree/master/lib/widgets): `lib/widgets`
- [Standard Pages](https://github.com/alibaba/flutter-go/tree/master/lib/standard_pages): `lib/standard_pages`
- [Demo Pages](https://github.com/alibaba/flutter-go/tree/master/lib/page_demo_package): `lib/page_demo_package`
- [Industry Data](https://github.com/alibaba/flutter-go/tree/master/lib/blocs): `lib/blocs`
- [API Client](https://github.com/alibaba/flutter-go/blob/master/lib/api/api.dart): `lib/api/api.dart`

### User Features

- [Collections](https://github.com/alibaba/flutter-go/tree/master/lib/views/collection_page): `lib/views/collection_page`
- [Login](https://github.com/alibaba/flutter-go/blob/master/lib/views/login_page/login_page.dart): `lib/views/login_page/login_page.dart`
- [User Profile](https://github.com/alibaba/flutter-go/blob/master/lib/views/user_page/user_page.dart): `lib/views/user_page/user_page.dart`
- [Local Preferences](https://github.com/alibaba/flutter-go/blob/master/lib/utils/shared_preferences.dart): `lib/utils/shared_preferences.dart`

### Dart CLI

- [CLI Commands](https://github.com/alibaba/flutter-go/blob/master/go-cli/src/cli_command_runder.dart): `go-cli/src/cli_command_runder.dart`
- [Create Pages](https://github.com/alibaba/flutter-go/blob/master/go-cli/src/command/create_page.dart): `go-cli/src/command/create_page.dart`
- [Create Demos](https://github.com/alibaba/flutter-go/blob/master/go-cli/src/command/create_demo.dart): `go-cli/src/command/create_demo.dart`
- [Build Lists](https://github.com/alibaba/flutter-go/blob/master/go-cli/src/command/build.dart): `go-cli/src/command/build.dart`

### Other components

- **App User**

## Connections

- App User → Flutter App: uses
- Flutter App → App Navigation: routes through
- App Navigation → Home and Categories: opens
- Home and Categories → Widget Search: offers
- Home and Categories → Widget Catalog: browses
- Widget Catalog → Widget Demos: opens examples
- Widget Catalog → Standard Pages: opens
- Widget Catalog → Demo Pages: opens
- Home and Categories → Industry Data: loads catalog
- Industry Data → API Client: requests data
- App Navigation → Collections: opens
- App Navigation → Login: opens
- App Navigation → User Profile: opens
- Collections → Local Preferences: uses preferences
- CLI Commands → Create Pages: dispatches
- CLI Commands → Create Demos: dispatches
- CLI Commands → Build Lists: dispatches
