How sinatpub/pu_driver works
This is a Flutter driver app, with screens and BLoCs for sign-in, account setup, online status, bookings, trip history, profile, wallet, and notifications. The likely driver workflow begins at app startup, proceeds through authentication and the home/booking experience, and reaches trip or account results. The README describes a presentation/domain/data layering, but the Flutter implementation was not sampled; dashed links therefore mark inferred wiring, not verified calls. The tree also exposes a separate coffee example feature.
Main entry points: datasources Driver Data Sources · home_screen.dart Driver Home · root_main.dart App Root · login_page.dart Login And OTP
Components 21
App Foundation
- App Startup
lib/main.dart - App Root
lib/app/root_main.dart
Driver Experience
- Login And OTP
lib/presentation/screens/login_page.dart - Registration
lib/presentation/screens/register_page.dart - Driver Home
lib/presentation/screens/home_screen/home_screen.dart - Home State
lib/presentation/screens/home_screen/bloc/home_bloc.dart - Booking Flow
lib/presentation/screens/booking/booking/booking_screen.dart - Booking State
lib/presentation/screens/booking/booking/bloc/booking_bloc.dart - Trip History
lib/presentation/screens/history_booking/riding_history_screen.dart - Driver Profile
lib/presentation/screens/profile_screen.dart - Driver Wallet
lib/presentation/blocs/driver_wallet_bloc.dart - Notifications
lib/presentation/screens/notification/view/notification_screen.dart
Data And Domain
- Driver Data Sources
lib/data/datasources - Domain Use Cases
lib/domain/usecases - Coffee Example
lib/data/repositories/coffee_repository_impl.dart
Shared Services
- HTTP Client
lib/core/api_service/client/dio_http_client.dart - Location Service
lib/services/location_bloc/location_bloc.dart - Taxi Socket
lib/taxi_single_ton/init_socket.dart - Local Storage
lib/core/storages - Notification Logic
lib/services/notification_logic.dart
Other components
- Driver
Connections 19
- Driver → App Startup: opens app
- App Startup → App Root: starts
- App Root → Login And OTP: routes to
- App Root → Driver Home: routes to
- Login And OTP → Registration: offers signup
- Driver Home → Home State: uses state
- Driver Home → Booking Flow: opens booking
- Booking Flow → Booking State: uses state
- Driver Home → Location Service: uses location
- Driver Home → Taxi Socket: booking updates
- Booking State → Driver Data Sources: loads booking data
- Login And OTP → Driver Data Sources: authenticates via
- Trip History → Driver Data Sources: loads history
- Driver Profile → Driver Data Sources: loads profile
- Driver Wallet → Driver Data Sources: loads wallet
- Notifications → Driver Data Sources: loads notifications
- Driver Data Sources → HTTP Client: uses client
- Domain Use Cases → Driver Data Sources: implemented by
- Notifications → Notification Logic: uses logic