# prakashdk/scan-go-client architecture

> Architecture diagram of the GitHub repository prakashdk/scan-go-client, 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/prakashdk/scan-go-client
- Repository: https://github.com/prakashdk/scan-go-client

## Overview

This is a Flutter client whose feature directories suggest a scan-and-shop workflow: users authenticate, scan a store item, manage a cart, and view orders or bills. The README is only a Flutter starter template, and no Dart application source was excerpted, so feature relationships and backend behavior cannot be verified; those links are shown as unverified. The sampled native files describe desktop launch/window hosting and plugin registration, not the shopping workflow.

Main entry points: [`lib/features/home`](https://github.com/prakashdk/scan-go-client/tree/main/lib/features/home) (Home shell), [`lib/core/utils/router.dart`](https://github.com/prakashdk/scan-go-client/blob/main/lib/core/utils/router.dart) (Navigation), [`lib/main.dart`](https://github.com/prakashdk/scan-go-client/blob/main/lib/main.dart) (App entry), [`lib/features/cart`](https://github.com/prakashdk/scan-go-client/tree/main/lib/features/cart) (Cart management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Shopping client"]
  node_entry["App entry<br/>[main.dart]"]
  node_navigation["Navigation<br/>[router.dart]"]
  node_auth["Account access"]
  node_home["Home shell"]
  node_scan["Store scanning"]
  node_cart["Cart management"]
  node_cartbill["Cart bill"]
  node_orders["Order history<br/>[orders_page.dart]"]
  node_orderbill["Order bill"]
end

subgraph group_services["Client services"]
  node_api["API client<br/>[api_client.dart]"]
  node_apiservice["API service<br/>[api_service.dart]"]
  node_models["Domain models<br/>[models.dart]"]
end

subgraph group_platform["Platform shells"]
  node_winmain["Windows launcher<br/>[main.cpp]"]
  node_flutterwindow["Flutter window host<br/>[flutter_window.h]"]
  node_winwindow["Windows window<br/>[win32_window.cpp]"]
  node_linuxmain["Linux launcher<br/>[main.cc]"]
  node_linuxapp["Linux application<br/>[my_application.h]"]
  node_macplugins["macOS plugins"]
  node_linuxplugins["Linux plugins"]
  node_windowsplugins["Windows plugins"]
end

node_user(("Shopper"))
node_backend["Remote service"]

node_user -.->|"starts app"| node_entry
node_entry -.->|"uses routes"| node_navigation
node_navigation -.->|"routes to"| node_auth
node_navigation -.->|"routes to"| node_home
node_home -.->|"offers scanning"| node_scan
node_home -.->|"offers cart"| node_cart
node_home -.->|"offers orders"| node_orders
node_cart -.->|"shows bill"| node_cartbill
node_orders -.->|"shows bill"| node_orderbill
node_api -.->|"provides requests"| node_apiservice
node_apiservice -.->|"calls"| node_backend
node_winmain -->|"creates"| node_flutterwindow
node_flutterwindow -->|"extends"| node_winwindow
node_linuxmain -->|"creates"| node_linuxapp
node_macplugins -.->|"registers plugins"| node_backend

click node_entry "https://github.com/prakashdk/scan-go-client/blob/main/lib/main.dart"
click node_navigation "https://github.com/prakashdk/scan-go-client/blob/main/lib/core/utils/router.dart"
click node_auth "https://github.com/prakashdk/scan-go-client/tree/main/lib/features/auth"
click node_home "https://github.com/prakashdk/scan-go-client/tree/main/lib/features/home"
click node_scan "https://github.com/prakashdk/scan-go-client/blob/main/lib/features/scan/scan_store_page.dart"
click node_cart "https://github.com/prakashdk/scan-go-client/tree/main/lib/features/cart"
click node_cartbill "https://github.com/prakashdk/scan-go-client/blob/main/lib/features/cart/cart_bill_page.dart"
click node_orders "https://github.com/prakashdk/scan-go-client/blob/main/lib/features/orders/orders_page.dart"
click node_orderbill "https://github.com/prakashdk/scan-go-client/blob/main/lib/features/orders/order_bill_page.dart"
click node_api "https://github.com/prakashdk/scan-go-client/blob/main/lib/core/api/api_client.dart"
click node_apiservice "https://github.com/prakashdk/scan-go-client/blob/main/lib/core/api/api_service.dart"
click node_models "https://github.com/prakashdk/scan-go-client/blob/main/lib/core/models/models.dart"
click node_winmain "https://github.com/prakashdk/scan-go-client/blob/main/windows/runner/main.cpp"
click node_flutterwindow "https://github.com/prakashdk/scan-go-client/blob/main/windows/runner/flutter_window.h"
click node_winwindow "https://github.com/prakashdk/scan-go-client/blob/main/windows/runner/win32_window.cpp"
click node_linuxmain "https://github.com/prakashdk/scan-go-client/blob/main/linux/runner/main.cc"
click node_linuxapp "https://github.com/prakashdk/scan-go-client/blob/main/linux/runner/my_application.h"
click node_macplugins "https://github.com/prakashdk/scan-go-client/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift"
click node_linuxplugins "https://github.com/prakashdk/scan-go-client/blob/main/linux/flutter/generated_plugin_registrant.h"
click node_windowsplugins "https://github.com/prakashdk/scan-go-client/blob/main/windows/flutter/generated_plugin_registrant.h"

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_navigation,node_auth,node_home,node_scan,node_cart,node_cartbill,node_orders,node_orderbill toneBlue
class node_api,node_apiservice,node_models toneAmber
class node_winmain,node_flutterwindow,node_winwindow,node_linuxmain,node_linuxapp,node_macplugins,node_linuxplugins,node_windowsplugins toneMint
class node_user,node_backend toneIndigo
```

## Components

### Shopping client

- [App entry](https://github.com/prakashdk/scan-go-client/blob/main/lib/main.dart): `lib/main.dart`
- [Navigation](https://github.com/prakashdk/scan-go-client/blob/main/lib/core/utils/router.dart): `lib/core/utils/router.dart`
- [Account access](https://github.com/prakashdk/scan-go-client/tree/main/lib/features/auth): `lib/features/auth`
- [Home shell](https://github.com/prakashdk/scan-go-client/tree/main/lib/features/home): `lib/features/home`
- [Store scanning](https://github.com/prakashdk/scan-go-client/blob/main/lib/features/scan/scan_store_page.dart): `lib/features/scan/scan_store_page.dart`
- [Cart management](https://github.com/prakashdk/scan-go-client/tree/main/lib/features/cart): `lib/features/cart`
- [Cart bill](https://github.com/prakashdk/scan-go-client/blob/main/lib/features/cart/cart_bill_page.dart): `lib/features/cart/cart_bill_page.dart`
- [Order history](https://github.com/prakashdk/scan-go-client/blob/main/lib/features/orders/orders_page.dart): `lib/features/orders/orders_page.dart`
- [Order bill](https://github.com/prakashdk/scan-go-client/blob/main/lib/features/orders/order_bill_page.dart): `lib/features/orders/order_bill_page.dart`

### Client services

- [API client](https://github.com/prakashdk/scan-go-client/blob/main/lib/core/api/api_client.dart): `lib/core/api/api_client.dart`
- [API service](https://github.com/prakashdk/scan-go-client/blob/main/lib/core/api/api_service.dart): `lib/core/api/api_service.dart`
- [Domain models](https://github.com/prakashdk/scan-go-client/blob/main/lib/core/models/models.dart): `lib/core/models/models.dart`

### Platform shells

- [Windows launcher](https://github.com/prakashdk/scan-go-client/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window host](https://github.com/prakashdk/scan-go-client/blob/main/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Windows window](https://github.com/prakashdk/scan-go-client/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [Linux launcher](https://github.com/prakashdk/scan-go-client/blob/main/linux/runner/main.cc): `linux/runner/main.cc`
- [Linux application](https://github.com/prakashdk/scan-go-client/blob/main/linux/runner/my_application.h): `linux/runner/my_application.h`
- [macOS plugins](https://github.com/prakashdk/scan-go-client/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift): `macos/Flutter/GeneratedPluginRegistrant.swift`
- [Linux plugins](https://github.com/prakashdk/scan-go-client/blob/main/linux/flutter/generated_plugin_registrant.h): `linux/flutter/generated_plugin_registrant.h`
- [Windows plugins](https://github.com/prakashdk/scan-go-client/blob/main/windows/flutter/generated_plugin_registrant.h): `windows/flutter/generated_plugin_registrant.h`

### Other components

- **Shopper**
- **Remote service**

## Connections

- Shopper → App entry: starts app
- App entry → Navigation: uses routes
- Navigation → Account access: routes to
- Navigation → Home shell: routes to
- Home shell → Store scanning: offers scanning
- Home shell → Cart management: offers cart
- Home shell → Order history: offers orders
- Cart management → Cart bill: shows bill
- Order history → Order bill: shows bill
- API client → API service: provides requests
- API service → Remote service: calls
- Windows launcher → Flutter window host: creates (evidence: `windows/runner/main.cpp`)
- Flutter window host → Windows window: extends (evidence: `windows/runner/flutter_window.h`)
- Linux launcher → Linux application: creates (evidence: `linux/runner/main.cc`)
- macOS plugins → Remote service: registers plugins
