# eng-ruqaih-salman2040/flutter-sweets-shop architecture

> Architecture diagram of the GitHub repository eng-ruqaih-salman2040/flutter-sweets-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/eng-ruqaih-salman2040/flutter-sweets-shop
- Repository: https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop

## Overview

This is a Flutter sweets-shop app intended for customers to browse desserts and place orders. The apparent user journey spans the shop home, product listing and details, then the cart; a profile screen is another documented-by-name app area. The tree identifies these Dart modules, but the README is generic and the supplied source excerpts do not include the Dart implementation, so screen wiring and cart behavior cannot be confirmed. No backend, payment service, or persistent store is evidenced.

Main entry points: [`lib/main.dart`](https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/main.dart) (App entry), [`lib/Sweets_Files_roq/homepageRoq.dart`](https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/homepageRoq.dart) (Shop home), [`lib/Sweets_Files_roq/product_list_page.dart`](https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/product_list_page.dart) (Product listing), [`lib/Sweets_Files_roq/product_details_page.dart`](https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/product_details_page.dart) (Product details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shopping["Shop browsing"]
  node_entry["App entry<br/>[main.dart]"]
  node_home["Shop home<br/>[homepageRoq.dart]"]
  node_listing["Product listing"]
  node_details["Product details"]
  node_product["Product model<br/>[product_roq.dart]"]
end

subgraph group_cart["Cart"]
  node_cartpage["Cart screen<br/>[cart_page_roq.dart]"]
  node_cartstate["Cart state"]
end

subgraph group_account["Account and support"]
  node_profile["Profile screen"]
  node_rtl["RTL support<br/>[CodeRtoL_Roq.dart]"]
end

node_customer(("Customer"))

node_customer -->|"opens"| node_entry
node_customer -->|"browses"| node_home
node_customer -->|"browses"| node_listing
node_customer -->|"views"| node_details
node_customer -->|"reviews cart"| node_cartpage
node_customer -->|"visits"| node_profile

click node_entry "https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/main.dart"
click node_home "https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/homepageRoq.dart"
click node_listing "https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/product_list_page.dart"
click node_details "https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/product_details_page.dart"
click node_product "https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/product_roq.dart"
click node_cartpage "https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/cart_page_roq.dart"
click node_cartstate "https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/cart_provider_roq.dart"
click node_profile "https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/profilePage_roq.dart"
click node_rtl "https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/CodeRtoL_Roq.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,node_home,node_listing,node_details,node_product toneBlue
class node_cartpage,node_cartstate toneAmber
class node_profile,node_rtl toneMint
class node_customer toneIndigo
```

## Components

### Shop browsing

- [App entry](https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/main.dart): `lib/main.dart`
- [Shop home](https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/homepageRoq.dart): `lib/Sweets_Files_roq/homepageRoq.dart`
- [Product listing](https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/product_list_page.dart): `lib/Sweets_Files_roq/product_list_page.dart`
- [Product details](https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/product_details_page.dart): `lib/Sweets_Files_roq/product_details_page.dart`
- [Product model](https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/product_roq.dart): `lib/Sweets_Files_roq/product_roq.dart`

### Cart

- [Cart screen](https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/cart_page_roq.dart): `lib/Sweets_Files_roq/cart_page_roq.dart`
- [Cart state](https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/cart_provider_roq.dart): `lib/Sweets_Files_roq/cart_provider_roq.dart`

### Account and support

- [Profile screen](https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/profilePage_roq.dart): `lib/Sweets_Files_roq/profilePage_roq.dart`
- [RTL support](https://github.com/eng-ruqaih-salman2040/flutter-sweets-shop/blob/master/lib/Sweets_Files_roq/CodeRtoL_Roq.dart): `lib/Sweets_Files_roq/CodeRtoL_Roq.dart`

### Other components

- **Customer**

## Connections

- Customer → App entry: opens
- Customer → Shop home: browses
- Customer → Product listing: browses
- Customer → Product details: views
- Customer → Cart screen: reviews cart
- Customer → Profile screen: visits
