# jodeveloper/deliverzler architecture

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

- Interactive diagram: https://gitdiagram.com/jodeveloper/deliverzler
- Repository: https://github.com/jodeveloper/deliverzler

## Overview

Deliverzler is a Flutter delivery app for restaurant employees. Drivers sign in, view live upcoming and in-progress orders, take responsibility for deliveries, and use a map to track or locate destinations; arrival enables client contact and order confirmation. The app also supports profile and settings, local and push notifications, and Firebase-backed order updates. The graph follows documented product capabilities and the stated layered architecture; most Dart implementation files were not sampled, so source-level call ownership cannot be verified and edges cite README documentation.

Main entry points: [`lib/core/presentation/routing`](https://github.com/jodeveloper/deliverzler/tree/master/lib/core/presentation/routing) (Nested navigation), [`lib/features/home/presentation/screens/home_screen`](https://github.com/jodeveloper/deliverzler/tree/master/lib/features/home/presentation/screens/home_screen) (Order dashboard), [`lib/features/map/presentation/screens/map_screen`](https://github.com/jodeveloper/deliverzler/tree/master/lib/features/map/presentation/screens/map_screen) (Map screen), [`lib/features/home/infrastructure/data_sources/orders_remote_data_source.dart`](https://github.com/jodeveloper/deliverzler/blob/master/lib/features/home/infrastructure/data_sources/orders_remote_data_source.dart) (Order data source)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["App shell"]
  node_app["Flutter app<br/>[app.dart]"]
  node_router["Nested navigation"]
end

subgraph group_identity["Identity"]
  node_signin["Sign in"]
  node_auth["Auth providers"]
  node_authrepo["Auth repository<br/>[auth_repo.dart]"]
end

subgraph group_delivery["Delivery workflow"]
  node_home["Order dashboard"]
  node_orders["Order domain<br/>[order.dart]"]
  node_orderdata["Order data source"]
  node_orderstore[("Firebase order store")]
  node_deliveryactions["Delivery actions"]
end

subgraph group_location["Maps and tracking"]
  node_map["Map screen"]
  node_places["Place search"]
  node_tracking["Location tracking"]
end

subgraph group_platform["Shared services"]
  node_notifications["Notification services"]
  node_localnotify["Local notifications"]
  node_cloudfn["Order notification function<br/>[index.js]"]
  node_profile["Employee profile"]
  node_settings["Preferences"]
  node_locale["Localization"]
  node_theme["Theme preferences"]
end

node_employee(("Delivery employee"))
node_googlemaps["Google Maps APIs"]
node_firebase[("Firebase services")]

node_employee -->|"uses"| node_app
node_app -->|"routes through"| node_router
node_router -->|"opens"| node_signin
node_signin -->|"submits credentials"| node_auth
node_auth -.->|"delegates"| node_authrepo
node_authrepo -->|"authenticates with"| node_firebase
node_router -->|"opens"| node_home
node_home -->|"shows"| node_orders
node_home -.->|"loads orders"| node_orderdata
node_orderdata -->|"reads and updates"| node_orderstore
node_orderstore -->|"hosted by"| node_firebase
node_home -.->|"starts delivery"| node_deliveryactions
node_deliveryactions -.->|"updates delivery"| node_orderdata
node_router -->|"opens order map"| node_map
node_map -->|"searches places"| node_places
node_places -->|"requests place details"| node_googlemaps
node_map -->|"tracks driver"| node_tracking
node_tracking -->|"gets location and directions"| node_googlemaps
node_tracking -->|"updates delivery location"| node_orderdata
node_employee -->|"edits profile"| node_profile
node_employee -->|"changes preferences"| node_settings
node_settings -->|"selects language"| node_locale
node_settings -->|"selects theme"| node_theme
node_cloudfn -->|"watches order changes"| node_orderstore
node_cloudfn -->|"sends topic message"| node_firebase
node_firebase -->|"delivers FCM"| node_notifications
node_notifications -->|"notifies"| node_employee
node_map -->|"notifies on arrival"| node_localnotify

click node_app "https://github.com/jodeveloper/deliverzler/blob/master/lib/app.dart"
click node_router "https://github.com/jodeveloper/deliverzler/tree/master/lib/core/presentation/routing"
click node_signin "https://github.com/jodeveloper/deliverzler/tree/master/lib/auth/presentation/screens/sign_in_screen"
click node_auth "https://github.com/jodeveloper/deliverzler/tree/master/lib/auth/presentation/providers"
click node_authrepo "https://github.com/jodeveloper/deliverzler/blob/master/lib/auth/infrastructure/repos/auth_repo.dart"
click node_home "https://github.com/jodeveloper/deliverzler/tree/master/lib/features/home/presentation/screens/home_screen"
click node_orders "https://github.com/jodeveloper/deliverzler/blob/master/lib/features/home/domain/order.dart"
click node_orderdata "https://github.com/jodeveloper/deliverzler/blob/master/lib/features/home/infrastructure/data_sources/orders_remote_data_source.dart"
click node_deliveryactions "https://github.com/jodeveloper/deliverzler/tree/master/lib/features/home/presentation/providers/update_delivery_status_provider"
click node_map "https://github.com/jodeveloper/deliverzler/tree/master/lib/features/map/presentation/screens/map_screen"
click node_places "https://github.com/jodeveloper/deliverzler/tree/master/lib/features/map/infrastructure"
click node_tracking "https://github.com/jodeveloper/deliverzler/blob/master/lib/core/infrastructure/services/location_service.dart"
click node_notifications "https://github.com/jodeveloper/deliverzler/tree/master/lib/core/infrastructure/services/fcm_service"
click node_localnotify "https://github.com/jodeveloper/deliverzler/tree/master/lib/core/infrastructure/services/local_notfication_service"
click node_cloudfn "https://github.com/jodeveloper/deliverzler/blob/master/functions/index.js"
click node_profile "https://github.com/jodeveloper/deliverzler/tree/master/lib/features/profile/presentation"
click node_settings "https://github.com/jodeveloper/deliverzler/tree/master/lib/features/settings/presentation"
click node_locale "https://github.com/jodeveloper/deliverzler/tree/master/lib/core/core_features/locale"
click node_theme "https://github.com/jodeveloper/deliverzler/tree/master/lib/core/core_features/theme"

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_router toneBlue
class node_signin,node_auth,node_authrepo,node_firebase toneAmber
class node_home,node_orders,node_orderdata,node_orderstore,node_deliveryactions,node_googlemaps toneMint
class node_map,node_places,node_tracking toneRose
class node_notifications,node_localnotify,node_cloudfn,node_profile,node_settings,node_locale,node_theme,node_employee toneIndigo
```

## Components

### App shell

- [Flutter app](https://github.com/jodeveloper/deliverzler/blob/master/lib/app.dart): `lib/app.dart`
- [Nested navigation](https://github.com/jodeveloper/deliverzler/tree/master/lib/core/presentation/routing): `lib/core/presentation/routing`

### Identity

- [Sign in](https://github.com/jodeveloper/deliverzler/tree/master/lib/auth/presentation/screens/sign_in_screen): `lib/auth/presentation/screens/sign_in_screen`
- [Auth providers](https://github.com/jodeveloper/deliverzler/tree/master/lib/auth/presentation/providers): `lib/auth/presentation/providers`
- [Auth repository](https://github.com/jodeveloper/deliverzler/blob/master/lib/auth/infrastructure/repos/auth_repo.dart): `lib/auth/infrastructure/repos/auth_repo.dart`

### Delivery workflow

- [Order dashboard](https://github.com/jodeveloper/deliverzler/tree/master/lib/features/home/presentation/screens/home_screen): `lib/features/home/presentation/screens/home_screen`
- [Order domain](https://github.com/jodeveloper/deliverzler/blob/master/lib/features/home/domain/order.dart): `lib/features/home/domain/order.dart`
- [Order data source](https://github.com/jodeveloper/deliverzler/blob/master/lib/features/home/infrastructure/data_sources/orders_remote_data_source.dart): `lib/features/home/infrastructure/data_sources/orders_remote_data_source.dart`
- **Firebase order store**
- [Delivery actions](https://github.com/jodeveloper/deliverzler/tree/master/lib/features/home/presentation/providers/update_delivery_status_provider): `lib/features/home/presentation/providers/update_delivery_status_provider`

### Maps and tracking

- [Map screen](https://github.com/jodeveloper/deliverzler/tree/master/lib/features/map/presentation/screens/map_screen): `lib/features/map/presentation/screens/map_screen`
- [Place search](https://github.com/jodeveloper/deliverzler/tree/master/lib/features/map/infrastructure): `lib/features/map/infrastructure`
- [Location tracking](https://github.com/jodeveloper/deliverzler/blob/master/lib/core/infrastructure/services/location_service.dart): `lib/core/infrastructure/services/location_service.dart`

### Shared services

- [Notification services](https://github.com/jodeveloper/deliverzler/tree/master/lib/core/infrastructure/services/fcm_service): `lib/core/infrastructure/services/fcm_service`
- [Local notifications](https://github.com/jodeveloper/deliverzler/tree/master/lib/core/infrastructure/services/local_notfication_service): `lib/core/infrastructure/services/local_notfication_service`
- [Order notification function](https://github.com/jodeveloper/deliverzler/blob/master/functions/index.js): `functions/index.js`
- [Employee profile](https://github.com/jodeveloper/deliverzler/tree/master/lib/features/profile/presentation): `lib/features/profile/presentation`
- [Preferences](https://github.com/jodeveloper/deliverzler/tree/master/lib/features/settings/presentation): `lib/features/settings/presentation`
- [Localization](https://github.com/jodeveloper/deliverzler/tree/master/lib/core/core_features/locale): `lib/core/core_features/locale`
- [Theme preferences](https://github.com/jodeveloper/deliverzler/tree/master/lib/core/core_features/theme): `lib/core/core_features/theme`

### Other components

- **Delivery employee**
- **Google Maps APIs**
- **Firebase services**

## Connections

- Delivery employee → Flutter app: uses (evidence: `README.md`)
- Flutter app → Nested navigation: routes through (evidence: `README.md`)
- Nested navigation → Sign in: opens (evidence: `README.md`)
- Sign in → Auth providers: submits credentials (evidence: `README.md`)
- Auth providers → Auth repository: delegates
- Auth repository → Firebase services: authenticates with (evidence: `README.md`)
- Nested navigation → Order dashboard: opens (evidence: `README.md`)
- Order dashboard → Order domain: shows (evidence: `README.md`)
- Order dashboard → Order data source: loads orders
- Order data source → Firebase order store: reads and updates (evidence: `README.md`)
- Firebase order store → Firebase services: hosted by (evidence: `README.md`)
- Order dashboard → Delivery actions: starts delivery
- Delivery actions → Order data source: updates delivery
- Nested navigation → Map screen: opens order map (evidence: `README.md`)
- Map screen → Place search: searches places (evidence: `README.md`)
- Place search → Google Maps APIs: requests place details (evidence: `README.md`)
- Map screen → Location tracking: tracks driver (evidence: `README.md`)
- Location tracking → Google Maps APIs: gets location and directions (evidence: `README.md`)
- Location tracking → Order data source: updates delivery location (evidence: `README.md`)
- Delivery employee → Employee profile: edits profile (evidence: `README.md`)
- Delivery employee → Preferences: changes preferences (evidence: `README.md`)
- Preferences → Localization: selects language (evidence: `README.md`)
- Preferences → Theme preferences: selects theme (evidence: `README.md`)
- Order notification function → Firebase order store: watches order changes (evidence: `functions/index.js`)
- Order notification function → Firebase services: sends topic message (evidence: `functions/index.js`)
- Firebase services → Notification services: delivers FCM (evidence: `README.md`)
- Notification services → Delivery employee: notifies (evidence: `README.md`)
- Map screen → Local notifications: notifies on arrival (evidence: `README.md`)
