# jananik-14/car-app architecture

> Architecture diagram of the GitHub repository jananik-14/car-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/jananik-14/car-app
- Repository: https://github.com/jananik-14/car-app

## Overview

Wheels2Drive is a Flutter vehicle-marketplace app for buyers and sellers, with a minimal bidding focus. Its documented screen set covers account access and terms, vehicle browsing and details, seller listing submission and confirmation, admin approval, notifications, and subscription plans. The tree identifies the Dart entry point, router, screens, shared widgets, and placeholder API service, but no Dart implementation excerpts were provided. Consequently, the graph preserves documented capabilities while leaving runtime navigation and service calls unverified.

Main entry points: [`lib/router/app_router.dart`](https://github.com/jananik-14/car-app/blob/main/lib/router/app_router.dart) (App routing), [`lib/main.dart`](https://github.com/jananik-14/car-app/blob/main/lib/main.dart) (Flutter entry), [`lib/services/api_service.dart`](https://github.com/jananik-14/car-app/blob/main/lib/services/api_service.dart) (API service), [`lib/widgets`](https://github.com/jananik-14/car-app/tree/main/lib/widgets) (Shared UI widgets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_application["App foundation"]
  node_entry["Flutter entry<br/>[main.dart]"]
  node_routing["App routing<br/>[app_router.dart]"]
  node_shared["Shared UI widgets"]
  node_api["API service<br/>[api_service.dart]"]
end

subgraph group_marketplace["Vehicle marketplace"]
  node_browse["Browse vehicles"]
  node_detail["Vehicle details"]
  node_post["Post vehicle"]
  node_confirmation["Listing confirmation"]
end

subgraph group_accounts["Account access"]
  node_login["Login<br/>[login_screen.dart]"]
  node_otp["OTP verification"]
  node_email["Email screen<br/>[email_screen.dart]"]
  node_terms["Terms and conditions"]
end

subgraph group_operations["Marketplace operations"]
  node_approval["Admin approval"]
  node_notifications["Notifications"]
  node_subscriptions["Subscription plans"]
end

node_user(("Buyer or seller"))

node_user -.->|"opens app"| node_entry
node_entry -.->|"uses routes"| node_routing
node_routing -.->|"routes to"| node_login
node_routing -.->|"routes to"| node_otp
node_routing -.->|"routes to"| node_email
node_routing -.->|"routes to"| node_terms
node_routing -.->|"routes to"| node_browse
node_routing -.->|"routes to"| node_detail
node_routing -.->|"routes to"| node_post
node_routing -.->|"routes to"| node_confirmation
node_routing -.->|"routes to"| node_approval
node_routing -.->|"routes to"| node_notifications
node_routing -.->|"routes to"| node_subscriptions
node_routing -.->|"uses widgets"| node_shared
node_api -.->|"backend wiring unverified"| node_entry

click node_entry "https://github.com/jananik-14/car-app/blob/main/lib/main.dart"
click node_routing "https://github.com/jananik-14/car-app/blob/main/lib/router/app_router.dart"
click node_shared "https://github.com/jananik-14/car-app/tree/main/lib/widgets"
click node_api "https://github.com/jananik-14/car-app/blob/main/lib/services/api_service.dart"
click node_login "https://github.com/jananik-14/car-app/blob/main/lib/screens/login_screen.dart"
click node_otp "https://github.com/jananik-14/car-app/blob/main/lib/screens/otp_verification_screen.dart"
click node_email "https://github.com/jananik-14/car-app/blob/main/lib/screens/email_screen.dart"
click node_terms "https://github.com/jananik-14/car-app/blob/main/lib/screens/terms_conditions_screen.dart"
click node_browse "https://github.com/jananik-14/car-app/blob/main/lib/screens/browse_vehicles_screen.dart"
click node_detail "https://github.com/jananik-14/car-app/blob/main/lib/screens/vehicle_detail_screen.dart"
click node_post "https://github.com/jananik-14/car-app/blob/main/lib/screens/post_vehicle_form_screen.dart"
click node_confirmation "https://github.com/jananik-14/car-app/blob/main/lib/screens/confirmation_screen.dart"
click node_approval "https://github.com/jananik-14/car-app/blob/main/lib/screens/admin_approval_screen.dart"
click node_notifications "https://github.com/jananik-14/car-app/blob/main/lib/screens/notifications_screen.dart"
click node_subscriptions "https://github.com/jananik-14/car-app/blob/main/lib/screens/subscription_plans_screen.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_routing,node_shared,node_api toneBlue
class node_browse,node_detail,node_post,node_confirmation toneAmber
class node_login,node_otp,node_email,node_terms toneMint
class node_approval,node_notifications,node_subscriptions toneRose
class node_user toneIndigo
```

## Components

### App foundation

- [Flutter entry](https://github.com/jananik-14/car-app/blob/main/lib/main.dart): `lib/main.dart`
- [App routing](https://github.com/jananik-14/car-app/blob/main/lib/router/app_router.dart): `lib/router/app_router.dart`
- [Shared UI widgets](https://github.com/jananik-14/car-app/tree/main/lib/widgets): `lib/widgets`
- [API service](https://github.com/jananik-14/car-app/blob/main/lib/services/api_service.dart): `lib/services/api_service.dart`

### Vehicle marketplace

- [Browse vehicles](https://github.com/jananik-14/car-app/blob/main/lib/screens/browse_vehicles_screen.dart): `lib/screens/browse_vehicles_screen.dart`
- [Vehicle details](https://github.com/jananik-14/car-app/blob/main/lib/screens/vehicle_detail_screen.dart): `lib/screens/vehicle_detail_screen.dart`
- [Post vehicle](https://github.com/jananik-14/car-app/blob/main/lib/screens/post_vehicle_form_screen.dart): `lib/screens/post_vehicle_form_screen.dart`
- [Listing confirmation](https://github.com/jananik-14/car-app/blob/main/lib/screens/confirmation_screen.dart): `lib/screens/confirmation_screen.dart`

### Account access

- [Login](https://github.com/jananik-14/car-app/blob/main/lib/screens/login_screen.dart): `lib/screens/login_screen.dart`
- [OTP verification](https://github.com/jananik-14/car-app/blob/main/lib/screens/otp_verification_screen.dart): `lib/screens/otp_verification_screen.dart`
- [Email screen](https://github.com/jananik-14/car-app/blob/main/lib/screens/email_screen.dart): `lib/screens/email_screen.dart`
- [Terms and conditions](https://github.com/jananik-14/car-app/blob/main/lib/screens/terms_conditions_screen.dart): `lib/screens/terms_conditions_screen.dart`

### Marketplace operations

- [Admin approval](https://github.com/jananik-14/car-app/blob/main/lib/screens/admin_approval_screen.dart): `lib/screens/admin_approval_screen.dart`
- [Notifications](https://github.com/jananik-14/car-app/blob/main/lib/screens/notifications_screen.dart): `lib/screens/notifications_screen.dart`
- [Subscription plans](https://github.com/jananik-14/car-app/blob/main/lib/screens/subscription_plans_screen.dart): `lib/screens/subscription_plans_screen.dart`

### Other components

- **Buyer or seller**

## Connections

- Buyer or seller → Flutter entry: opens app
- Flutter entry → App routing: uses routes
- App routing → Login: routes to
- App routing → OTP verification: routes to
- App routing → Email screen: routes to
- App routing → Terms and conditions: routes to
- App routing → Browse vehicles: routes to
- App routing → Vehicle details: routes to
- App routing → Post vehicle: routes to
- App routing → Listing confirmation: routes to
- App routing → Admin approval: routes to
- App routing → Notifications: routes to
- App routing → Subscription plans: routes to
- App routing → Shared UI widgets: uses widgets
- API service → Flutter entry: backend wiring unverified
