How etec-spring-final/flutter-car-rental-app works
Auto Rent Premium is a Flutter car-rental frontend backed by a separately maintained Spring Boot REST service. The principal customer journey is vehicle discovery, detail review, rental selection and reservation, then KHQR/Bakong payment. The app also supports authentication, favorites, booking history, profiles, and notifications. The README documents a presentation/BLoC → use-case → repository → data-source/API layering; the feature modules below represent these responsibilities. Source excerpts are primarily platform runner code, so feature relationships are based on README documentation rather than inspected Dart call sites.
Main entry points: dio_client.dart Dio API Client · explore_screen.dart Vehicle Browsing · booking_screen.dart Rental Selection · app_router.dart App Router
Components 22
Vehicle Discovery
- Vehicle Browsing
lib/feature/vehicle/presentation/view/explore_screen.dart - Vehicle Details
lib/feature/vehicle/presentation/view/vehicle_detail_screen.dart - Brand Filters
lib/feature/brand/presentation/bloc/brand_bloc.dart - Favorites
lib/feature/favorite/presentation/bloc/favorite_bloc.dart - Vehicle Use Cases
lib/feature/vehicle/domain/usecase/get_vehicles_use_case.dart - Vehicle Data
lib/feature/vehicle/data/repository/vehicle_repository_impl.dart
Rental & Payment
- Rental Selection
lib/feature/rental/presentation/view/booking_screen.dart - Reservation History
lib/feature/booking/presentation/bloc/booking_bloc.dart - Booking Operations
lib/feature/booking/domain/usecase/create_booking.dart - Booking Data
lib/feature/booking/data/repository/booking_repository_impl.dart - Payment Screen
lib/feature/payment/presentation/view/payment_screen.dart - QR Payment Operations
lib/feature/payment/domain/usecase/create_qr_usecase.dart - Payment Data
lib/feature/payment/data/repository/payment_repository_impl.dart
Account
- Authentication
lib/feature/auth/presentation/view/login_screen.dart - User Profile
lib/feature/profile/presentation/view/profile_screen.dart - Notification Inbox
lib/feature/notification/presentation/view/notification_screen.dart - Push Notifications
lib/core/service/firebase/notification_service.dart
App Platform
- Flutter App
lib/main.dart - App Router
lib/app/router/app_router.dart - Dio API Client
lib/core/network/dio_client.dart
Other components
- Customer
- Spring REST API
Connections 23
- Customer → Flutter App: uses
README.md - Flutter App → App Router: routes through
README.md - App Router → Authentication: routes to
README.md - App Router → Vehicle Browsing: routes to
README.md - Vehicle Browsing → Vehicle Details: opens details
README.md - Vehicle Browsing → Brand Filters: filters by
README.md - Vehicle Browsing → Favorites: saves favorites
README.md - Vehicle Browsing → Vehicle Use Cases: requests vehicles
README.md - Vehicle Use Cases → Vehicle Data: uses repository
README.md - Vehicle Data → Dio API Client: requests data
README.md - Vehicle Details → Rental Selection: starts rental
README.md - Rental Selection → Reservation History: creates reservation
README.md - Reservation History → Booking Operations: invokes
README.md - Booking Operations → Booking Data: uses repository
README.md - Booking Data → Dio API Client: requests data
README.md - Rental Selection → Payment Screen: continues to payment
README.md - Payment Screen → QR Payment Operations: requests QR
README.md - QR Payment Operations → Payment Data: uses repository
README.md - Payment Data → Dio API Client: requests data
README.md - User Profile → Dio API Client: manages account
README.md - Notification Inbox → Dio API Client: loads inbox
README.md - Push Notifications → Notification Inbox: feeds inbox
- Dio API Client → Spring REST API: calls REST
README.md