How rubenkaksh/khelam works
Khelam is a Flutter starter template with a themed authentication baseline, mockable auth and API examples, local storage, and a theme preview; the tree also shows a booking feature. README documents the intended layered feature workflow. The sampled source contains platform launch wrappers rather than Dart runtime code, so feature wiring and external-service details are not verified; uncertain links are omitted.
Main entry points: app.dart App Shell · home_view.dart Home View · theme_preview_view.dart Theme Preview · main.dart App Entry
Components 21
Application
- App Entry
lib/main.dart - App Shell
lib/app.dart - App Router
lib/ui/navigation/app_router.dart - Home View
lib/features/home/views/home_view.dart
Authentication
- Login And Register
lib/features/auth/views/login_view.dart - Auth State
lib/features/auth/bloc/auth_cubit.dart - Auth Service
lib/features/auth/auth_service.dart - Auth API
lib/features/auth/data/auth_api_service.dart - Auth Token Store
lib/features/auth/data/auth_token_store.dart
Booking
- Turf Selection
lib/features/booking/views/turf_selection_view.dart - Turf Selection State
lib/features/booking/bloc/turf_selection_cubit.dart - Turf Repository
lib/features/booking/data/turfs_repository.dart - Turf API Repository
lib/features/booking/data/turfs_api_repository.dart - Schedule View
lib/features/booking/views/schedule_view.dart - Schedule State
lib/features/booking/bloc/schedule_cubit.dart - Booking API
lib/features/booking/data/booking_api_service.dart
Shared UI And Storage
- Theme Preview
lib/features/theme_preview/views/theme_preview_view.dart - App Theme
lib/ui/core/app_theme.dart - Preferences
lib/data/storage/preferences.dart - Preferences Adapter
lib/data/storage/preferences_impl.dart
Other components
- User
Connections 8
- User → Login And Register: uses
- User → Home View: uses
- App Entry → App Shell: starts
- App Shell → App Router: configures
- User → Turf Selection: selects turf
- User → Schedule View: views schedule
- Home View → Theme Preview: opens preview
- Theme Preview → App Theme: uses theme