# abo-7omaid/car_rental architecture

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

- Interactive diagram: https://gitdiagram.com/abo-7omaid/car_rental
- Repository: https://github.com/abo-7omaid/car_rental

## Overview

RentRide is a Flutter car-rental app. The principal user journey is to browse a cloud-backed car catalog, choose rental dates, review pricing, confirm a booking, and track bookings; authentication, favorites, and notifications are supporting capabilities. The README documents these capabilities, but the supplied source excerpts do not include the Dart implementation, so component links that depend on runtime wiring are shown as unverified dashed edges.

Main entry points: [`lib/data/services/auth_service.dart`](https://github.com/abo-7omaid/car_rental/blob/master/lib/data/services/auth_service.dart) (Authentication), [`lib/features/home/screens/home.dart`](https://github.com/abo-7omaid/car_rental/blob/master/lib/features/home/screens/home.dart) (Car catalog), [`lib/features/booking/screens/booking.dart`](https://github.com/abo-7omaid/car_rental/blob/master/lib/features/booking/screens/booking.dart) (Booking flow), [`lib/data/services/booking_service.dart`](https://github.com/abo-7omaid/car_rental/blob/master/lib/data/services/booking_service.dart) (Booking data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_entry["App entry<br/>[main.dart]"]
  node_navigation["Navigation<br/>[app_routes.dart]"]
  node_onboarding["Onboarding"]
  node_splash["Splash and intro<br/>[splash_screen.dart]"]
end

subgraph group_identity["Identity and access"]
  node_login["Sign in<br/>[login.dart]"]
  node_registration["Registration<br/>[register.dart]"]
  node_password["Password recovery"]
  node_auth_service["Authentication<br/>[auth_service.dart]"]
  node_biometrics["Biometrics"]
end

subgraph group_rental["Rental experience"]
  node_catalog["Car catalog<br/>[home.dart]"]
  node_booking["Booking flow<br/>[booking.dart]"]
end

subgraph group_services["Data and integrations"]
  node_car_service["Car data<br/>[car_service.dart]"]
  node_car_model["Car model<br/>[car_model.dart]"]
  node_booking_service["Booking data"]
  node_booking_model["Booking model<br/>[booking_model.dart]"]
  node_user_model["User model<br/>[user_model.dart]"]
  node_database[("Backend database")]
  node_notifications["Push notifications"]
  node_permissions["Permissions"]
end

node_renter(("Renter"))

node_renter -->|"uses"| node_entry
node_entry -.->|"routes through"| node_navigation
node_renter -.->|"starts at"| node_onboarding
node_renter -.->|"opens"| node_splash
node_renter -->|"authenticates"| node_login
node_renter -->|"registers"| node_registration
node_renter -.->|"recovers access"| node_password
node_login -.->|"delegates to"| node_auth_service
node_registration -.->|"delegates to"| node_auth_service
node_password -.->|"delegates to"| node_auth_service
node_renter -->|"authenticates with"| node_biometrics
node_renter -->|"browses"| node_catalog
node_catalog -.->|"fetches cars"| node_car_service
node_car_service -.->|"reads catalog"| node_database
node_catalog -.->|"shows specifications"| node_car_model
node_renter -->|"selects rental"| node_booking
node_booking -.->|"confirms booking"| node_booking_service
node_booking -.->|"records details"| node_booking_model
node_booking_service -.->|"writes booking"| node_database
node_booking_service -.->|"triggers alert"| node_notifications
node_renter -->|"receives alerts"| node_notifications
node_renter -->|"grants permissions"| node_permissions
node_renter -.->|"tracks booking history"| node_database
node_auth_service -.->|"uses user data"| node_user_model

click node_entry "https://github.com/abo-7omaid/car_rental/blob/master/lib/main.dart"
click node_navigation "https://github.com/abo-7omaid/car_rental/blob/master/lib/core/route/app_routes.dart"
click node_onboarding "https://github.com/abo-7omaid/car_rental/blob/master/lib/onboarding/screens/onboarding_screen.dart"
click node_splash "https://github.com/abo-7omaid/car_rental/blob/master/lib/features/splash/screens/splash_screen.dart"
click node_login "https://github.com/abo-7omaid/car_rental/blob/master/lib/features/auth/screens/login.dart"
click node_registration "https://github.com/abo-7omaid/car_rental/blob/master/lib/features/auth/screens/register.dart"
click node_password "https://github.com/abo-7omaid/car_rental/blob/master/lib/features/auth/screens/forget_password.dart"
click node_auth_service "https://github.com/abo-7omaid/car_rental/blob/master/lib/data/services/auth_service.dart"
click node_biometrics "https://github.com/abo-7omaid/car_rental/blob/master/lib/data/services/biometric_service.dart"
click node_catalog "https://github.com/abo-7omaid/car_rental/blob/master/lib/features/home/screens/home.dart"
click node_car_service "https://github.com/abo-7omaid/car_rental/blob/master/lib/data/services/car_service.dart"
click node_car_model "https://github.com/abo-7omaid/car_rental/blob/master/lib/data/models/car_model.dart"
click node_booking "https://github.com/abo-7omaid/car_rental/blob/master/lib/features/booking/screens/booking.dart"
click node_booking_service "https://github.com/abo-7omaid/car_rental/blob/master/lib/data/services/booking_service.dart"
click node_booking_model "https://github.com/abo-7omaid/car_rental/blob/master/lib/data/models/booking_model.dart"
click node_user_model "https://github.com/abo-7omaid/car_rental/blob/master/lib/data/models/user_model.dart"
click node_database "https://github.com/abo-7omaid/car_rental/blob/master/lib/data/services/database_service.dart"
click node_notifications "https://github.com/abo-7omaid/car_rental/blob/master/lib/data/services/notification_service.dart"
click node_permissions "https://github.com/abo-7omaid/car_rental/blob/master/lib/data/services/permission_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_entry,node_navigation,node_onboarding,node_splash toneBlue
class node_login,node_registration,node_password,node_auth_service,node_biometrics toneAmber
class node_catalog,node_booking toneMint
class node_car_service,node_car_model,node_booking_service,node_booking_model,node_user_model,node_database,node_notifications,node_permissions toneRose
class node_renter toneIndigo
```

## Components

### App shell

- [App entry](https://github.com/abo-7omaid/car_rental/blob/master/lib/main.dart): `lib/main.dart`
- [Navigation](https://github.com/abo-7omaid/car_rental/blob/master/lib/core/route/app_routes.dart): `lib/core/route/app_routes.dart`
- [Onboarding](https://github.com/abo-7omaid/car_rental/blob/master/lib/onboarding/screens/onboarding_screen.dart): `lib/onboarding/screens/onboarding_screen.dart`
- [Splash and intro](https://github.com/abo-7omaid/car_rental/blob/master/lib/features/splash/screens/splash_screen.dart): `lib/features/splash/screens/splash_screen.dart`

### Identity and access

- [Sign in](https://github.com/abo-7omaid/car_rental/blob/master/lib/features/auth/screens/login.dart): `lib/features/auth/screens/login.dart`
- [Registration](https://github.com/abo-7omaid/car_rental/blob/master/lib/features/auth/screens/register.dart): `lib/features/auth/screens/register.dart`
- [Password recovery](https://github.com/abo-7omaid/car_rental/blob/master/lib/features/auth/screens/forget_password.dart): `lib/features/auth/screens/forget_password.dart`
- [Authentication](https://github.com/abo-7omaid/car_rental/blob/master/lib/data/services/auth_service.dart): `lib/data/services/auth_service.dart`
- [Biometrics](https://github.com/abo-7omaid/car_rental/blob/master/lib/data/services/biometric_service.dart): `lib/data/services/biometric_service.dart`

### Rental experience

- [Car catalog](https://github.com/abo-7omaid/car_rental/blob/master/lib/features/home/screens/home.dart): `lib/features/home/screens/home.dart`
- [Booking flow](https://github.com/abo-7omaid/car_rental/blob/master/lib/features/booking/screens/booking.dart): `lib/features/booking/screens/booking.dart`

### Data and integrations

- [Car data](https://github.com/abo-7omaid/car_rental/blob/master/lib/data/services/car_service.dart): `lib/data/services/car_service.dart`
- [Car model](https://github.com/abo-7omaid/car_rental/blob/master/lib/data/models/car_model.dart): `lib/data/models/car_model.dart`
- [Booking data](https://github.com/abo-7omaid/car_rental/blob/master/lib/data/services/booking_service.dart): `lib/data/services/booking_service.dart`
- [Booking model](https://github.com/abo-7omaid/car_rental/blob/master/lib/data/models/booking_model.dart): `lib/data/models/booking_model.dart`
- [User model](https://github.com/abo-7omaid/car_rental/blob/master/lib/data/models/user_model.dart): `lib/data/models/user_model.dart`
- [Backend database](https://github.com/abo-7omaid/car_rental/blob/master/lib/data/services/database_service.dart): `lib/data/services/database_service.dart`
- [Push notifications](https://github.com/abo-7omaid/car_rental/blob/master/lib/data/services/notification_service.dart): `lib/data/services/notification_service.dart`
- [Permissions](https://github.com/abo-7omaid/car_rental/blob/master/lib/data/services/permission_service.dart): `lib/data/services/permission_service.dart`

### Other components

- **Renter**

## Connections

- Renter → App entry: uses (evidence: `README.md`)
- App entry → Navigation: routes through
- Renter → Onboarding: starts at
- Renter → Splash and intro: opens
- Renter → Sign in: authenticates (evidence: `README.md`)
- Renter → Registration: registers (evidence: `README.md`)
- Renter → Password recovery: recovers access
- Sign in → Authentication: delegates to
- Registration → Authentication: delegates to
- Password recovery → Authentication: delegates to
- Renter → Biometrics: authenticates with (evidence: `README.md`)
- Renter → Car catalog: browses (evidence: `README.md`)
- Car catalog → Car data: fetches cars
- Car data → Backend database: reads catalog
- Car catalog → Car model: shows specifications
- Renter → Booking flow: selects rental (evidence: `README.md`)
- Booking flow → Booking data: confirms booking
- Booking flow → Booking model: records details
- Booking data → Backend database: writes booking
- Booking data → Push notifications: triggers alert
- Renter → Push notifications: receives alerts (evidence: `README.md`)
- Renter → Permissions: grants permissions (evidence: `README.md`)
- Renter → Backend database: tracks booking history
- Authentication → User model: uses user data
