# yashkacholiya61-netizen/bus-pass-management architecture

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

- Interactive diagram: https://gitdiagram.com/yashkacholiya61-netizen/bus-pass-management
- Repository: https://github.com/yashkacholiya61-netizen/bus-pass-management

## Overview

ICEM Bus is a Flutter bus-pass management app. Students register and authenticate, apply for and manage passes, make UPI/QR payments, and present passes for QR verification; administrators oversee applications, payments, reports, and operations, while staff and drivers are managed separately. The README documents Firestore-backed real-time data. Dart implementation excerpts were not provided, so the graph reflects documented capabilities and tree-supported paths rather than asserting internal call sequences.

Main entry points: [`lib/features/admin/presentation/views/admin_dashboard.dart`](https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/admin/presentation/views/admin_dashboard.dart) (Admin dashboard), [`lib/main.dart`](https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/main.dart) (Bus pass app), [`lib/features/payment`](https://github.com/yashkacholiya61-netizen/bus-pass-management/tree/main/lib/features/payment) (Payment handling), [`lib/features/admin/data/repositories/admin_repository.dart`](https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/admin/data/repositories/admin_repository.dart) (Admin data access)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App entry"]
  node_flutter_app["Bus pass app<br/>[main.dart]"]
end

subgraph group_student["Student services"]
  node_authentication["Registration and auth"]
  node_pass_management["Pass applications"]
  node_student_views["Student pass views"]
  node_pass_verification["QR verification"]
  node_payments["Payment handling"]
  node_upi_payment["UPI QR payment"]
end

subgraph group_operations["Operations"]
  node_admin_dashboard["Admin dashboard"]
  node_admin_applications["Application review"]
  node_admin_payments["Payment oversight"]
  node_admin_reports["Reports and charts"]
  node_staff_management["Staff management"]
  node_driver_management["Driver management"]
  node_notifications["Notifications"]
  node_admin_data["Admin data access"]
end

subgraph group_platform["Data and integrations"]
  node_firestore[("Firestore")]
  node_firebase_service["Firebase service"]
end

node_student_user(("Student"))
node_admin_user(("Administrator"))
node_staff_user(("Staff and drivers"))
node_payment_provider["Payment service"]

node_student_user -->|"uses"| node_flutter_app
node_admin_user -->|"uses"| node_flutter_app
node_staff_user -->|"uses"| node_flutter_app
node_student_user -->|"registers"| node_authentication
node_student_user -->|"applies"| node_pass_management
node_student_user -->|"manages passes"| node_student_views
node_student_user -->|"presents pass"| node_pass_verification
node_student_user -->|"pays"| node_payments
node_payments -->|"offers UPI QR"| node_upi_payment
node_payments -.->|"integrates payment"| node_payment_provider
node_admin_user -->|"oversees"| node_admin_dashboard
node_admin_dashboard -->|"reviews"| node_admin_applications
node_admin_dashboard -->|"monitors"| node_admin_payments
node_admin_dashboard -->|"views reports"| node_admin_reports
node_admin_user -->|"manages staff"| node_staff_management
node_admin_user -->|"manages drivers"| node_driver_management
node_admin_dashboard -.->|"manages notifications"| node_notifications
node_admin_data -.->|"accesses data"| node_firestore
node_firebase_service -.->|"connects"| node_firestore
node_flutter_app -->|"uses real-time data"| node_firestore

click node_flutter_app "https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/main.dart"
click node_authentication "https://github.com/yashkacholiya61-netizen/bus-pass-management/tree/main/lib/features/auth"
click node_pass_management "https://github.com/yashkacholiya61-netizen/bus-pass-management/tree/main/lib/features/bus_pass"
click node_student_views "https://github.com/yashkacholiya61-netizen/bus-pass-management/tree/main/lib/features/student/presentation/views"
click node_pass_verification "https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/bus_pass/presentation/views/qr_verification_screen.dart"
click node_payments "https://github.com/yashkacholiya61-netizen/bus-pass-management/tree/main/lib/features/payment"
click node_upi_payment "https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/payment/presentation/views/pay_via_upi_qr_screen.dart"
click node_admin_dashboard "https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/admin/presentation/views/admin_dashboard.dart"
click node_admin_applications "https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/admin/presentation/views/admin_applications_tab.dart"
click node_admin_payments "https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/admin/presentation/views/admin_payments_tab.dart"
click node_admin_reports "https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/admin/presentation/views/admin_reports_tab.dart"
click node_staff_management "https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/admin/presentation/views/staff_dashboard.dart"
click node_driver_management "https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/driver/presentation/views/driver_management_screen.dart"
click node_notifications "https://github.com/yashkacholiya61-netizen/bus-pass-management/tree/main/lib/features/notification"
click node_admin_data "https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/admin/data/repositories/admin_repository.dart"
click node_firebase_service "https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/services/firebase/firebase_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_flutter_app toneBlue
class node_authentication,node_pass_management,node_student_views,node_pass_verification,node_payments,node_upi_payment toneAmber
class node_admin_dashboard,node_admin_applications,node_admin_payments,node_admin_reports,node_staff_management,node_driver_management,node_notifications,node_admin_data toneMint
class node_firestore,node_firebase_service toneRose
class node_student_user,node_admin_user,node_staff_user,node_payment_provider toneIndigo
```

## Components

### App entry

- [Bus pass app](https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/main.dart): `lib/main.dart`

### Student services

- [Registration and auth](https://github.com/yashkacholiya61-netizen/bus-pass-management/tree/main/lib/features/auth): `lib/features/auth`
- [Pass applications](https://github.com/yashkacholiya61-netizen/bus-pass-management/tree/main/lib/features/bus_pass): `lib/features/bus_pass`
- [Student pass views](https://github.com/yashkacholiya61-netizen/bus-pass-management/tree/main/lib/features/student/presentation/views): `lib/features/student/presentation/views`
- [QR verification](https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/bus_pass/presentation/views/qr_verification_screen.dart): `lib/features/bus_pass/presentation/views/qr_verification_screen.dart`
- [Payment handling](https://github.com/yashkacholiya61-netizen/bus-pass-management/tree/main/lib/features/payment): `lib/features/payment`
- [UPI QR payment](https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/payment/presentation/views/pay_via_upi_qr_screen.dart): `lib/features/payment/presentation/views/pay_via_upi_qr_screen.dart`

### Operations

- [Admin dashboard](https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/admin/presentation/views/admin_dashboard.dart): `lib/features/admin/presentation/views/admin_dashboard.dart`
- [Application review](https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/admin/presentation/views/admin_applications_tab.dart): `lib/features/admin/presentation/views/admin_applications_tab.dart`
- [Payment oversight](https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/admin/presentation/views/admin_payments_tab.dart): `lib/features/admin/presentation/views/admin_payments_tab.dart`
- [Reports and charts](https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/admin/presentation/views/admin_reports_tab.dart): `lib/features/admin/presentation/views/admin_reports_tab.dart`
- [Staff management](https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/admin/presentation/views/staff_dashboard.dart): `lib/features/admin/presentation/views/staff_dashboard.dart`
- [Driver management](https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/driver/presentation/views/driver_management_screen.dart): `lib/features/driver/presentation/views/driver_management_screen.dart`
- [Notifications](https://github.com/yashkacholiya61-netizen/bus-pass-management/tree/main/lib/features/notification): `lib/features/notification`
- [Admin data access](https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/features/admin/data/repositories/admin_repository.dart): `lib/features/admin/data/repositories/admin_repository.dart`

### Data and integrations

- **Firestore**
- [Firebase service](https://github.com/yashkacholiya61-netizen/bus-pass-management/blob/main/lib/services/firebase/firebase_service.dart): `lib/services/firebase/firebase_service.dart`

### Other components

- **Student**
- **Administrator**
- **Staff and drivers**
- **Payment service**

## Connections

- Student → Bus pass app: uses (evidence: `README.md`)
- Administrator → Bus pass app: uses (evidence: `README.md`)
- Staff and drivers → Bus pass app: uses (evidence: `README.md`)
- Student → Registration and auth: registers (evidence: `README.md`)
- Student → Pass applications: applies (evidence: `README.md`)
- Student → Student pass views: manages passes (evidence: `README.md`)
- Student → QR verification: presents pass (evidence: `README.md`)
- Student → Payment handling: pays (evidence: `README.md`)
- Payment handling → UPI QR payment: offers UPI QR (evidence: `README.md`)
- Payment handling → Payment service: integrates payment
- Administrator → Admin dashboard: oversees (evidence: `README.md`)
- Admin dashboard → Application review: reviews (evidence: `README.md`)
- Admin dashboard → Payment oversight: monitors (evidence: `README.md`)
- Admin dashboard → Reports and charts: views reports (evidence: `README.md`)
- Administrator → Staff management: manages staff (evidence: `README.md`)
- Administrator → Driver management: manages drivers (evidence: `README.md`)
- Admin dashboard → Notifications: manages notifications
- Admin data access → Firestore: accesses data
- Firebase service → Firestore: connects
- Bus pass app → Firestore: uses real-time data (evidence: `README.md`)
