# zephvion/restaurant_app architecture

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

- Interactive diagram: https://gitdiagram.com/zephvion/restaurant_app
- Repository: https://github.com/zephvion/restaurant_app

## Overview

This Flutter restaurant app presents a home hub for food ordering, meal planning, table reservations, takeaway, and catering. The likely user journey is to enter a service, select products or booking details, and reach checkout, confirmation, or tracking views. The tree also shows shared authentication, route definitions, controllers, models, and reusable widgets. README content and Dart source excerpts were not provided, so screen-to-screen and controller relationships below are dashed, unverified links rather than claims about inspected calls.

Main entry points: [`lib/routes/app_routes.dart`](https://github.com/zephvion/restaurant_app/blob/main/lib/routes/app_routes.dart) (App routes), [`lib/state`](https://github.com/zephvion/restaurant_app/tree/main/lib/state) (Service controllers), [`lib/screens/order_food`](https://github.com/zephvion/restaurant_app/tree/main/lib/screens/order_food) (Food ordering), [`lib/main.dart`](https://github.com/zephvion/restaurant_app/blob/main/lib/main.dart) (App startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_main["App startup<br/>[main.dart]"]
  node_home["Service hub<br/>[home_screen.dart]"]
  node_routes["App routes<br/>[app_routes.dart]"]
  node_auth["Sign-in"]
  node_onboarding["Onboarding"]
end

subgraph group_ordering["Food ordering"]
  node_food["Food ordering"]
  node_cart["Cart and billing<br/>[cart_screen.dart]"]
  node_payments["Payment options"]
  node_order_result["Order tracking"]
  node_meal["Meal planning"]
end

subgraph group_services["Restaurant services"]
  node_reservation["Table reservation"]
  node_takeaway["Takeaway"]
  node_catering["Catering"]
end

subgraph group_shared["Shared app layers"]
  node_state["Service controllers"]
  node_models["Domain models"]
  node_mockdata["Sample data<br/>[mock_data.dart]"]
  node_widgets["Shared widgets"]
  node_google_auth["Google sign-in"]
end

node_user(("Customer"))

node_user -.->|"launches"| node_main
node_main -.->|"opens"| node_home
node_home -.->|"navigates"| node_routes
node_routes -.->|"routes to"| node_auth
node_routes -.->|"routes to"| node_food
node_routes -.->|"routes to"| node_meal
node_routes -.->|"routes to"| node_reservation
node_routes -.->|"routes to"| node_takeaway
node_routes -.->|"routes to"| node_catering
node_food -.->|"adds items"| node_cart
node_cart -.->|"continues checkout"| node_payments
node_payments -.->|"confirms order"| node_order_result
node_food -.->|"uses"| node_state
node_meal -.->|"uses"| node_state
node_reservation -.->|"uses"| node_state
node_takeaway -.->|"uses"| node_state
node_catering -.->|"uses"| node_state
node_state -.->|"manages"| node_models
node_food -.->|"may read"| node_mockdata
node_food -.->|"uses"| node_widgets
node_auth -.->|"may invoke"| node_google_auth

click node_main "https://github.com/zephvion/restaurant_app/blob/main/lib/main.dart"
click node_home "https://github.com/zephvion/restaurant_app/blob/main/lib/screens/home/home_screen.dart"
click node_routes "https://github.com/zephvion/restaurant_app/blob/main/lib/routes/app_routes.dart"
click node_auth "https://github.com/zephvion/restaurant_app/tree/main/lib/screens/auth"
click node_food "https://github.com/zephvion/restaurant_app/tree/main/lib/screens/order_food"
click node_cart "https://github.com/zephvion/restaurant_app/blob/main/lib/screens/order_food/cart_screen.dart"
click node_payments "https://github.com/zephvion/restaurant_app/blob/main/lib/screens/order_food/payment_options_screen.dart"
click node_order_result "https://github.com/zephvion/restaurant_app/blob/main/lib/screens/order_food/track_order_screen.dart"
click node_meal "https://github.com/zephvion/restaurant_app/tree/main/lib/screens/food_planner"
click node_reservation "https://github.com/zephvion/restaurant_app/tree/main/lib/screens/reserve_table"
click node_takeaway "https://github.com/zephvion/restaurant_app/tree/main/lib/screens/takeaway"
click node_catering "https://github.com/zephvion/restaurant_app/tree/main/lib/screens/catering"
click node_onboarding "https://github.com/zephvion/restaurant_app/blob/main/lib/screens/onboarding/onboarding_screen.dart"
click node_state "https://github.com/zephvion/restaurant_app/tree/main/lib/state"
click node_models "https://github.com/zephvion/restaurant_app/tree/main/lib/models"
click node_mockdata "https://github.com/zephvion/restaurant_app/blob/main/lib/data/mock_data.dart"
click node_widgets "https://github.com/zephvion/restaurant_app/tree/main/lib/widgets"
click node_google_auth "https://github.com/zephvion/restaurant_app/blob/main/lib/services/google_auth_service.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_main,node_home,node_routes,node_auth,node_onboarding toneBlue
class node_food,node_cart,node_payments,node_order_result,node_meal toneAmber
class node_reservation,node_takeaway,node_catering toneMint
class node_state,node_models,node_mockdata,node_widgets,node_google_auth toneRose
class node_user toneIndigo
```

## Components

### App entry

- [App startup](https://github.com/zephvion/restaurant_app/blob/main/lib/main.dart): `lib/main.dart`
- [Service hub](https://github.com/zephvion/restaurant_app/blob/main/lib/screens/home/home_screen.dart): `lib/screens/home/home_screen.dart`
- [App routes](https://github.com/zephvion/restaurant_app/blob/main/lib/routes/app_routes.dart): `lib/routes/app_routes.dart`
- [Sign-in](https://github.com/zephvion/restaurant_app/tree/main/lib/screens/auth): `lib/screens/auth`
- [Onboarding](https://github.com/zephvion/restaurant_app/blob/main/lib/screens/onboarding/onboarding_screen.dart): `lib/screens/onboarding/onboarding_screen.dart`

### Food ordering

- [Food ordering](https://github.com/zephvion/restaurant_app/tree/main/lib/screens/order_food): `lib/screens/order_food`
- [Cart and billing](https://github.com/zephvion/restaurant_app/blob/main/lib/screens/order_food/cart_screen.dart): `lib/screens/order_food/cart_screen.dart`
- [Payment options](https://github.com/zephvion/restaurant_app/blob/main/lib/screens/order_food/payment_options_screen.dart): `lib/screens/order_food/payment_options_screen.dart`
- [Order tracking](https://github.com/zephvion/restaurant_app/blob/main/lib/screens/order_food/track_order_screen.dart): `lib/screens/order_food/track_order_screen.dart`
- [Meal planning](https://github.com/zephvion/restaurant_app/tree/main/lib/screens/food_planner): `lib/screens/food_planner`

### Restaurant services

- [Table reservation](https://github.com/zephvion/restaurant_app/tree/main/lib/screens/reserve_table): `lib/screens/reserve_table`
- [Takeaway](https://github.com/zephvion/restaurant_app/tree/main/lib/screens/takeaway): `lib/screens/takeaway`
- [Catering](https://github.com/zephvion/restaurant_app/tree/main/lib/screens/catering): `lib/screens/catering`

### Shared app layers

- [Service controllers](https://github.com/zephvion/restaurant_app/tree/main/lib/state): `lib/state`
- [Domain models](https://github.com/zephvion/restaurant_app/tree/main/lib/models): `lib/models`
- [Sample data](https://github.com/zephvion/restaurant_app/blob/main/lib/data/mock_data.dart): `lib/data/mock_data.dart`
- [Shared widgets](https://github.com/zephvion/restaurant_app/tree/main/lib/widgets): `lib/widgets`
- [Google sign-in](https://github.com/zephvion/restaurant_app/blob/main/lib/services/google_auth_service.dart): `lib/services/google_auth_service.dart`

### Other components

- **Customer**

## Connections

- Customer → App startup: launches
- App startup → Service hub: opens
- Service hub → App routes: navigates
- App routes → Sign-in: routes to
- App routes → Food ordering: routes to
- App routes → Meal planning: routes to
- App routes → Table reservation: routes to
- App routes → Takeaway: routes to
- App routes → Catering: routes to
- Food ordering → Cart and billing: adds items
- Cart and billing → Payment options: continues checkout
- Payment options → Order tracking: confirms order
- Food ordering → Service controllers: uses
- Meal planning → Service controllers: uses
- Table reservation → Service controllers: uses
- Takeaway → Service controllers: uses
- Catering → Service controllers: uses
- Service controllers → Domain models: manages
- Food ordering → Sample data: may read
- Food ordering → Shared widgets: uses
- Sign-in → Google sign-in: may invoke
