# mohamed-oraby10/quick_mart architecture

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

- Interactive diagram: https://gitdiagram.com/mohamed-oraby10/quick_mart
- Repository: https://github.com/mohamed-oraby10/quick_mart

## Overview

Quick Mart is a cross-platform Flutter shopping app. Its user-facing journey spans authentication, product discovery, cart management, checkout, and order tracking; the README also documents wishlist, profile/address management, reviews, localization, and offline support. The tree supports these feature paths, but no Dart implementation excerpts were provided, so internal calls and data flow are not asserted. Dashed links mark the likely shopping progression without verified source evidence.

Main entry points: [`lib/Features/Checkout`](https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Checkout) (Checkout), [`lib/Features/Auth`](https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Auth) (Authentication), [`lib/Features/Home`](https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Home) (Catalog browsing), [`lib/Features/Cart`](https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Cart) (Shopping cart)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity"]
  node_auth["Authentication"]
  node_firebase_auth{{"Firebase Auth"}}
end

subgraph group_catalog["Product discovery"]
  node_catalog_browse["Catalog browsing"]
  node_product_reviews["Ratings and reviews"]
end

subgraph group_shopping["Shopping and orders"]
  node_cart["Shopping cart"]
  node_wishlist["Wishlist"]
  node_checkout["Checkout"]
  node_payment["PayPal payment"]
  node_order_history["Order tracking"]
end

subgraph group_account["Customer account"]
  node_profile["Profile and address"]
  node_onboarding["Onboarding"]
end

subgraph group_platform["App services"]
  node_offline_cache[("Offline caching")]
  node_language["Language support"]
end

node_shopper(("Shopper"))

node_shopper -->|"signs in"| node_auth
node_auth -.->|"authenticates"| node_firebase_auth
node_shopper -->|"browses products"| node_catalog_browse
node_shopper -->|"rates products"| node_product_reviews
node_shopper -->|"manages cart"| node_cart
node_shopper -->|"manages wishlist"| node_wishlist
node_shopper -->|"manages address"| node_profile
node_shopper -.->|"places order"| node_checkout
node_cart -.->|"continues shopping"| node_checkout
node_checkout -.->|"processes payment"| node_payment
node_shopper -->|"tracks orders"| node_order_history
node_shopper -.->|"starts onboarding"| node_onboarding
node_catalog_browse -.->|"caches catalog"| node_offline_cache
node_shopper -->|"chooses language"| node_language

click node_auth "https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Auth"
click node_catalog_browse "https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Home"
click node_product_reviews "https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Home"
click node_cart "https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Cart"
click node_wishlist "https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Wishlist"
click node_checkout "https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Checkout"
click node_payment "https://github.com/mohamed-oraby10/quick_mart/blob/main/lib/Features/Checkout/data/services/paypal_payment_remote_service.dart"
click node_order_history "https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Profile"
click node_profile "https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Profile"
click node_onboarding "https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Onboarding"
click node_offline_cache "https://github.com/mohamed-oraby10/quick_mart/blob/main/lib/Features/Home/data/data_sources/home_local_data_source.dart"
click node_language "https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/core/cubits/language_cubit"

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_auth,node_firebase_auth toneBlue
class node_catalog_browse,node_product_reviews toneAmber
class node_cart,node_wishlist,node_checkout,node_payment,node_order_history toneMint
class node_profile,node_onboarding toneRose
class node_offline_cache,node_language,node_shopper toneIndigo
```

## Components

### Identity

- [Authentication](https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Auth): `lib/Features/Auth`
- **Firebase Auth**

### Product discovery

- [Catalog browsing](https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Home): `lib/Features/Home`
- [Ratings and reviews](https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Home): `lib/Features/Home`

### Shopping and orders

- [Shopping cart](https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Cart): `lib/Features/Cart`
- [Wishlist](https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Wishlist): `lib/Features/Wishlist`
- [Checkout](https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Checkout): `lib/Features/Checkout`
- [PayPal payment](https://github.com/mohamed-oraby10/quick_mart/blob/main/lib/Features/Checkout/data/services/paypal_payment_remote_service.dart): `lib/Features/Checkout/data/services/paypal_payment_remote_service.dart`
- [Order tracking](https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Profile): `lib/Features/Profile`

### Customer account

- [Profile and address](https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Profile): `lib/Features/Profile`
- [Onboarding](https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/Features/Onboarding): `lib/Features/Onboarding`

### App services

- [Offline caching](https://github.com/mohamed-oraby10/quick_mart/blob/main/lib/Features/Home/data/data_sources/home_local_data_source.dart): `lib/Features/Home/data/data_sources/home_local_data_source.dart`
- [Language support](https://github.com/mohamed-oraby10/quick_mart/tree/main/lib/core/cubits/language_cubit): `lib/core/cubits/language_cubit`

### Other components

- **Shopper**

## Connections

- Shopper → Authentication: signs in (evidence: `README.md`)
- Authentication → Firebase Auth: authenticates
- Shopper → Catalog browsing: browses products (evidence: `README.md`)
- Shopper → Ratings and reviews: rates products (evidence: `README.md`)
- Shopper → Shopping cart: manages cart (evidence: `README.md`)
- Shopper → Wishlist: manages wishlist (evidence: `README.md`)
- Shopper → Profile and address: manages address (evidence: `README.md`)
- Shopper → Checkout: places order
- Shopping cart → Checkout: continues shopping
- Checkout → PayPal payment: processes payment
- Shopper → Order tracking: tracks orders (evidence: `README.md`)
- Shopper → Onboarding: starts onboarding
- Catalog browsing → Offline caching: caches catalog
- Shopper → Language support: chooses language (evidence: `README.md`)
