# ibrahim-asad/gp-front-end architecture

> Architecture diagram of the GitHub repository ibrahim-asad/gp-front-end, 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/ibrahim-asad/gp-front-end
- Repository: https://github.com/ibrahim-asad/gp-front-end

## Overview

DropPal is a cross-platform Flutter commerce app for guests, customers, and merchants. The user enters through app navigation, browses products and stores, and can continue into cart and checkout; customers also manage orders, profiles, and support, while merchants operate their stores and fulfill orders. Real-time messaging, authentication, secure storage, localization, and analytics support those role-specific experiences. Relationships below follow capabilities and structure documented in the README; Dart implementation files were not sampled, so detailed call ownership is not verified.

Main entry points: [`lib/customer/Views/customer_home_view.dart`](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/customer/Views/customer_home_view.dart) (Customer shopping), [`lib/merchant/views/merchant_dashboard_view.dart`](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/merchant/views/merchant_dashboard_view.dart) (Merchant dashboard), [`lib/routes.dart`](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/routes.dart) (Role navigation), [`lib/main.dart`](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/main.dart) (App entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App and access"]
  node_app["App entry<br/>[main.dart]"]
  node_navigation["Role navigation<br/>[routes.dart]"]
  node_authentication["Authentication"]
end

subgraph group_shopping["Shopping experience"]
  node_guest["Guest shopping"]
  node_customer["Customer shopping"]
  node_catalog["Catalog and search"]
  node_cart["Cart and checkout<br/>[checkout_view.dart]"]
  node_wishlist["Wishlist<br/>[wishlist_view.dart]"]
end

subgraph group_commerce["Orders and support"]
  node_orders["Order management<br/>[orders_view.dart]"]
  node_support["Customer support"]
end

subgraph group_merchant["Merchant operations"]
  node_merchant["Merchant dashboard"]
  node_products["Product management"]
  node_fulfillment["Fulfillment and shipping"]
  node_analytics["Merchant analytics"]
end

subgraph group_platform["Shared services"]
  node_chat["Real-time chat"]
  node_secure_storage[("Secure credentials")]
  node_localization["English and Arabic"]
end

node_user(("User"))
node_backend[("Commerce backend")]

node_user -->|"opens"| node_app
node_app -->|"routes"| node_navigation
node_navigation -->|"authenticates"| node_authentication
node_navigation -->|"offers guest mode"| node_guest
node_navigation -->|"offers customer mode"| node_customer
node_navigation -->|"offers merchant mode"| node_merchant
node_guest -->|"browses"| node_catalog
node_customer -->|"browses"| node_catalog
node_customer -->|"shops through"| node_cart
node_guest -->|"shops through"| node_cart
node_customer -->|"manages"| node_wishlist
node_customer -->|"tracks orders"| node_orders
node_cart -.->|"submits checkout"| node_backend
node_orders -->|"manages orders"| node_backend
node_customer -->|"requests help"| node_support
node_customer -->|"messages merchant"| node_chat
node_merchant -->|"messages customers"| node_chat
node_merchant -->|"manages products"| node_products
node_merchant -->|"manages orders"| node_orders
node_merchant -->|"fulfills orders"| node_fulfillment
node_merchant -->|"views analytics"| node_analytics
node_authentication -->|"stores credentials"| node_secure_storage
node_app -->|"localizes interface"| node_localization

click node_app "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/main.dart"
click node_navigation "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/routes.dart"
click node_authentication "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/controllers/auth_controlles.dart"
click node_guest "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/guest/views/guest_home_view.dart"
click node_customer "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/customer/Views/customer_home_view.dart"
click node_catalog "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/customer/Controllers/product_controller.dart"
click node_cart "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/customer/Views/checkout_view.dart"
click node_wishlist "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/customer/Views/wishlist_view.dart"
click node_orders "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/customer/Views/orders_view.dart"
click node_support "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/customer/Views/support_tickets_view.dart"
click node_chat "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/services/global_chat_service.dart"
click node_merchant "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/merchant/views/merchant_dashboard_view.dart"
click node_products "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/merchant/views/product_management_view.dart"
click node_fulfillment "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/merchant/views/fulfillment_center_view.dart"
click node_analytics "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/services/analytics_service.dart"
click node_secure_storage "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/services/secure_storage_service.dart"
click node_localization "https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/localiztion/app_translations.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_app,node_navigation,node_authentication,node_user toneBlue
class node_guest,node_customer,node_catalog,node_cart,node_wishlist,node_backend toneAmber
class node_orders,node_support toneMint
class node_merchant,node_products,node_fulfillment,node_analytics toneRose
class node_chat,node_secure_storage,node_localization toneIndigo
```

## Components

### App and access

- [App entry](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/main.dart): `lib/main.dart`
- [Role navigation](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/routes.dart): `lib/routes.dart`
- [Authentication](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/controllers/auth_controlles.dart): `lib/controllers/auth_controlles.dart`

### Shopping experience

- [Guest shopping](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/guest/views/guest_home_view.dart): `lib/guest/views/guest_home_view.dart`
- [Customer shopping](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/customer/Views/customer_home_view.dart): `lib/customer/Views/customer_home_view.dart`
- [Catalog and search](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/customer/Controllers/product_controller.dart): `lib/customer/Controllers/product_controller.dart`
- [Cart and checkout](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/customer/Views/checkout_view.dart): `lib/customer/Views/checkout_view.dart`
- [Wishlist](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/customer/Views/wishlist_view.dart): `lib/customer/Views/wishlist_view.dart`

### Orders and support

- [Order management](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/customer/Views/orders_view.dart): `lib/customer/Views/orders_view.dart`
- [Customer support](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/customer/Views/support_tickets_view.dart): `lib/customer/Views/support_tickets_view.dart`

### Merchant operations

- [Merchant dashboard](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/merchant/views/merchant_dashboard_view.dart): `lib/merchant/views/merchant_dashboard_view.dart`
- [Product management](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/merchant/views/product_management_view.dart): `lib/merchant/views/product_management_view.dart`
- [Fulfillment and shipping](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/merchant/views/fulfillment_center_view.dart): `lib/merchant/views/fulfillment_center_view.dart`
- [Merchant analytics](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/services/analytics_service.dart): `lib/services/analytics_service.dart`

### Shared services

- [Real-time chat](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/services/global_chat_service.dart): `lib/services/global_chat_service.dart`
- [Secure credentials](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/services/secure_storage_service.dart): `lib/services/secure_storage_service.dart`
- [English and Arabic](https://github.com/ibrahim-asad/gp-front-end/blob/master/lib/localiztion/app_translations.dart): `lib/localiztion/app_translations.dart`

### Other components

- **User**
- **Commerce backend**

## Connections

- User → App entry: opens (evidence: `README.md`)
- App entry → Role navigation: routes (evidence: `README.md`)
- Role navigation → Authentication: authenticates (evidence: `README.md`)
- Role navigation → Guest shopping: offers guest mode (evidence: `README.md`)
- Role navigation → Customer shopping: offers customer mode (evidence: `README.md`)
- Role navigation → Merchant dashboard: offers merchant mode (evidence: `README.md`)
- Guest shopping → Catalog and search: browses (evidence: `README.md`)
- Customer shopping → Catalog and search: browses (evidence: `README.md`)
- Customer shopping → Cart and checkout: shops through (evidence: `README.md`)
- Guest shopping → Cart and checkout: shops through (evidence: `README.md`)
- Customer shopping → Wishlist: manages (evidence: `README.md`)
- Customer shopping → Order management: tracks orders (evidence: `README.md`)
- Cart and checkout → Commerce backend: submits checkout
- Order management → Commerce backend: manages orders (evidence: `README.md`)
- Customer shopping → Customer support: requests help (evidence: `README.md`)
- Customer shopping → Real-time chat: messages merchant (evidence: `README.md`)
- Merchant dashboard → Real-time chat: messages customers (evidence: `README.md`)
- Merchant dashboard → Product management: manages products (evidence: `README.md`)
- Merchant dashboard → Order management: manages orders (evidence: `README.md`)
- Merchant dashboard → Fulfillment and shipping: fulfills orders (evidence: `README.md`)
- Merchant dashboard → Merchant analytics: views analytics (evidence: `README.md`)
- Authentication → Secure credentials: stores credentials (evidence: `README.md`)
- App entry → English and Arabic: localizes interface (evidence: `README.md`)
