# oakar-kyaw/mobile-ecommerce architecture

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

- Interactive diagram: https://gitdiagram.com/oakar-kyaw/mobile-ecommerce
- Repository: https://github.com/oakar-kyaw/mobile-ecommerce

## Overview

This is a Flutter e-commerce client. Its apparent user journey spans browsing products and brands, viewing product details, managing favorites and a cart, checking out with shipping and payment information, and reviewing orders; account, messaging, notifications, and settings are additional capabilities indicated by the source tree. The Dart implementation was not excerpted and the README is generic, so these stages are inferred from filenames. Dashed, unevidenced links show only likely navigation or coordination, not verified calls.

Main entry points: [`lib/src/product-detail.page.dart`](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/product-detail.page.dart) (Product detail), [`lib/src/home.page.dart`](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/home.page.dart) (Home), [`lib/src/checkout.page.dart`](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/checkout.page.dart) (Checkout), [`lib/main.dart`](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/main.dart) (App entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browse["Discovery"]
  node_home["Home<br/>[home.page.dart]"]
  node_catalog["Categories"]
  node_brands["Brands<br/>[brand.page.dart]"]
  node_branddetail["Brand detail"]
  node_trending["Trending items"]
  node_product["Product detail"]
  node_search["Search UI<br/>[search-input.dart]"]
end

subgraph group_commerce["Shopping"]
  node_cart["Cart<br/>[cart.page.dart]"]
  node_checkout["Checkout<br/>[checkout.page.dart]"]
  node_shipping["Shipping info"]
  node_orders["Order history"]
  node_orderdetail["Order detail"]
  node_favorites["Favorites<br/>[favorite.page.dart]"]
end

subgraph group_account["Account"]
  node_login["Login and signup<br/>[login.dart]"]
  node_signup["Signup<br/>[sign-up.page.dart]"]
  node_profile["Personal settings"]
  node_chat["Chat<br/>[chat.page.dart]"]
  node_notifications["Notifications"]
end

subgraph group_app["App structure"]
  node_entry["App entry<br/>[main.dart]"]
  node_routes["Navigation routes<br/>[app-route.dart]"]
  node_routegen["Route generator"]
  node_services["Backend API clients"]
  node_state["App state providers"]
  node_models["Response models"]
end

node_shopper(("Shopper"))

node_shopper -.->|"opens app"| node_entry
node_entry -.->|"likely configures"| node_routes
node_routes -.->|"likely dispatches"| node_routegen
node_routegen -.->|"likely routes"| node_home
node_home -.->|"likely navigates"| node_catalog
node_home -.->|"likely navigates"| node_brands
node_home -.->|"likely displays"| node_trending
node_brands -.->|"likely opens"| node_branddetail
node_catalog -.->|"likely opens"| node_product
node_trending -.->|"likely opens"| node_product
node_search -.->|"likely filters"| node_catalog
node_product -.->|"likely adds items"| node_cart
node_product -.->|"likely saves"| node_favorites
node_cart -.->|"likely proceeds"| node_checkout
node_checkout -.->|"likely collects"| node_shipping
node_checkout -.->|"likely places order"| node_orders
node_orders -.->|"likely opens"| node_orderdetail
node_login -.->|"likely offers signup"| node_signup
node_entry -.->|"likely initializes"| node_state
node_product -.->|"likely requests data"| node_services
node_checkout -.->|"likely sends order"| node_services
node_services -.->|"likely parses responses"| node_models

click node_entry "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/main.dart"
click node_routes "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/app-route.dart"
click node_routegen "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/route-generator.dart"
click node_home "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/home.page.dart"
click node_catalog "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/categories.page.dart"
click node_brands "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/brand.page.dart"
click node_branddetail "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/brand-detail.page.dart"
click node_trending "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/trending-and-new-arrival-item.page.dart"
click node_product "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/product-detail.page.dart"
click node_search "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/components/search-input.dart"
click node_cart "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/cart.page.dart"
click node_checkout "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/checkout.page.dart"
click node_shipping "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/shipping-info.page.dart"
click node_orders "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/order-history.page.dart"
click node_orderdetail "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/order-detail.page.dart"
click node_favorites "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/favorite.page.dart"
click node_login "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/login.dart"
click node_signup "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/sign-up.page.dart"
click node_profile "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/personal-setting.dart"
click node_chat "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/chat.page.dart"
click node_notifications "https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/notification.page.dart"
click node_services "https://github.com/oakar-kyaw/mobile-ecommerce/tree/master/lib/api"
click node_state "https://github.com/oakar-kyaw/mobile-ecommerce/tree/master/lib/riverpod"
click node_models "https://github.com/oakar-kyaw/mobile-ecommerce/tree/master/lib/response"

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_home,node_catalog,node_brands,node_branddetail,node_trending,node_product,node_search toneBlue
class node_cart,node_checkout,node_shipping,node_orders,node_orderdetail,node_favorites toneAmber
class node_login,node_signup,node_profile,node_chat,node_notifications toneMint
class node_entry,node_routes,node_routegen,node_services,node_state,node_models toneRose
class node_shopper toneIndigo
```

## Components

### Discovery

- [Home](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/home.page.dart): `lib/src/home.page.dart`
- [Categories](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/categories.page.dart): `lib/src/categories.page.dart`
- [Brands](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/brand.page.dart): `lib/src/brand.page.dart`
- [Brand detail](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/brand-detail.page.dart): `lib/src/brand-detail.page.dart`
- [Trending items](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/trending-and-new-arrival-item.page.dart): `lib/src/trending-and-new-arrival-item.page.dart`
- [Product detail](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/product-detail.page.dart): `lib/src/product-detail.page.dart`
- [Search UI](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/components/search-input.dart): `lib/components/search-input.dart`

### Shopping

- [Cart](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/cart.page.dart): `lib/src/cart.page.dart`
- [Checkout](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/checkout.page.dart): `lib/src/checkout.page.dart`
- [Shipping info](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/shipping-info.page.dart): `lib/src/shipping-info.page.dart`
- [Order history](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/order-history.page.dart): `lib/src/order-history.page.dart`
- [Order detail](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/order-detail.page.dart): `lib/src/order-detail.page.dart`
- [Favorites](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/favorite.page.dart): `lib/src/favorite.page.dart`

### Account

- [Login and signup](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/login.dart): `lib/src/login.dart`
- [Signup](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/sign-up.page.dart): `lib/src/sign-up.page.dart`
- [Personal settings](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/personal-setting.dart): `lib/src/personal-setting.dart`
- [Chat](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/chat.page.dart): `lib/src/chat.page.dart`
- [Notifications](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/notification.page.dart): `lib/src/notification.page.dart`

### App structure

- [App entry](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/main.dart): `lib/main.dart`
- [Navigation routes](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/app-route.dart): `lib/src/app-route.dart`
- [Route generator](https://github.com/oakar-kyaw/mobile-ecommerce/blob/master/lib/src/route-generator.dart): `lib/src/route-generator.dart`
- [Backend API clients](https://github.com/oakar-kyaw/mobile-ecommerce/tree/master/lib/api): `lib/api`
- [App state providers](https://github.com/oakar-kyaw/mobile-ecommerce/tree/master/lib/riverpod): `lib/riverpod`
- [Response models](https://github.com/oakar-kyaw/mobile-ecommerce/tree/master/lib/response): `lib/response`

### Other components

- **Shopper**

## Connections

- Shopper → App entry: opens app
- App entry → Navigation routes: likely configures
- Navigation routes → Route generator: likely dispatches
- Route generator → Home: likely routes
- Home → Categories: likely navigates
- Home → Brands: likely navigates
- Home → Trending items: likely displays
- Brands → Brand detail: likely opens
- Categories → Product detail: likely opens
- Trending items → Product detail: likely opens
- Search UI → Categories: likely filters
- Product detail → Cart: likely adds items
- Product detail → Favorites: likely saves
- Cart → Checkout: likely proceeds
- Checkout → Shipping info: likely collects
- Checkout → Order history: likely places order
- Order history → Order detail: likely opens
- Login and signup → Signup: likely offers signup
- App entry → App state providers: likely initializes
- Product detail → Backend API clients: likely requests data
- Checkout → Backend API clients: likely sends order
- Backend API clients → Response models: likely parses responses
