# tanjim45/my_shop architecture

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

- Interactive diagram: https://gitdiagram.com/tanjim45/my_shop
- Repository: https://github.com/tanjim45/my_shop

## Overview

This is a Flutter shop app. The tree indicates account access, product browsing, cart, checkout, delivery-address, payment, order-history, and profile features. The README provides no product workflow details, and the sampled source contains platform launchers rather than Dart application logic, so feature wiring and service calls cannot be established; the graph shows the identifiable modules without inventing their connections.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_entry["App entry<br/>[main.dart]"]
end

subgraph group_shopping["Shopping"]
  node_home["Shop home<br/>[Homepage.dart]"]
  node_products["Product data<br/>[products_data.dart]"]
  node_details["Product details"]
  node_cart["Cart"]
  node_summary["Order summary"]
  node_address["Delivery address"]
  node_payment["Payment<br/>[payment.dart]"]
  node_orders["Order history"]
  node_order_service["Order service<br/>[order_service.dart]"]
end

subgraph group_account["Account"]
  node_auth_gate["Auth gate<br/>[auth_gate.dart]"]
  node_auth_service["Auth service<br/>[Auth_Service.dart]"]
  node_login["Login<br/>[login.dart]"]
  node_register["Registration<br/>[register.dart]"]
  node_profile["Profile<br/>[profile.dart]"]
end

node_shopper(("Shopper"))
node_firebase_auth["Firebase Auth"]
node_firestore[("Cloud Firestore")]

click node_entry "https://github.com/tanjim45/my_shop/blob/main/lib/main.dart"
click node_auth_gate "https://github.com/tanjim45/my_shop/blob/main/lib/auth_gate.dart"
click node_auth_service "https://github.com/tanjim45/my_shop/blob/main/lib/Auth_Service.dart"
click node_login "https://github.com/tanjim45/my_shop/blob/main/lib/login.dart"
click node_register "https://github.com/tanjim45/my_shop/blob/main/lib/register.dart"
click node_home "https://github.com/tanjim45/my_shop/blob/main/lib/Homepage.dart"
click node_products "https://github.com/tanjim45/my_shop/blob/main/lib/products_data.dart"
click node_details "https://github.com/tanjim45/my_shop/blob/main/lib/product_details.dart"
click node_cart "https://github.com/tanjim45/my_shop/blob/main/lib/cart_controller.dart"
click node_summary "https://github.com/tanjim45/my_shop/blob/main/lib/summary_screen.dart"
click node_address "https://github.com/tanjim45/my_shop/blob/main/lib/delivery_address_screen.dart"
click node_payment "https://github.com/tanjim45/my_shop/blob/main/lib/payment.dart"
click node_orders "https://github.com/tanjim45/my_shop/blob/main/lib/order_history_screen.dart"
click node_order_service "https://github.com/tanjim45/my_shop/blob/main/lib/order_service.dart"
click node_profile "https://github.com/tanjim45/my_shop/blob/main/lib/profile.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_entry toneBlue
class node_home,node_products,node_details,node_cart,node_summary,node_address,node_payment,node_orders,node_order_service,node_firestore toneAmber
class node_auth_gate,node_auth_service,node_login,node_register,node_profile toneMint
class node_shopper,node_firebase_auth toneIndigo
```

## Components

### App shell

- [App entry](https://github.com/tanjim45/my_shop/blob/main/lib/main.dart): `lib/main.dart`

### Shopping

- [Shop home](https://github.com/tanjim45/my_shop/blob/main/lib/Homepage.dart): `lib/Homepage.dart`
- [Product data](https://github.com/tanjim45/my_shop/blob/main/lib/products_data.dart): `lib/products_data.dart`
- [Product details](https://github.com/tanjim45/my_shop/blob/main/lib/product_details.dart): `lib/product_details.dart`
- [Cart](https://github.com/tanjim45/my_shop/blob/main/lib/cart_controller.dart): `lib/cart_controller.dart`
- [Order summary](https://github.com/tanjim45/my_shop/blob/main/lib/summary_screen.dart): `lib/summary_screen.dart`
- [Delivery address](https://github.com/tanjim45/my_shop/blob/main/lib/delivery_address_screen.dart): `lib/delivery_address_screen.dart`
- [Payment](https://github.com/tanjim45/my_shop/blob/main/lib/payment.dart): `lib/payment.dart`
- [Order history](https://github.com/tanjim45/my_shop/blob/main/lib/order_history_screen.dart): `lib/order_history_screen.dart`
- [Order service](https://github.com/tanjim45/my_shop/blob/main/lib/order_service.dart): `lib/order_service.dart`

### Account

- [Auth gate](https://github.com/tanjim45/my_shop/blob/main/lib/auth_gate.dart): `lib/auth_gate.dart`
- [Auth service](https://github.com/tanjim45/my_shop/blob/main/lib/Auth_Service.dart): `lib/Auth_Service.dart`
- [Login](https://github.com/tanjim45/my_shop/blob/main/lib/login.dart): `lib/login.dart`
- [Registration](https://github.com/tanjim45/my_shop/blob/main/lib/register.dart): `lib/register.dart`
- [Profile](https://github.com/tanjim45/my_shop/blob/main/lib/profile.dart): `lib/profile.dart`

### Other components

- **Shopper**
- **Firebase Auth**
- **Cloud Firestore**
