How phuoc-link/eventhub-mobile works
EventHub is a Flutter client for managing and registering for events through a REST API. Users sign in, explore and inspect events, register for individual schedules, and manage profiles or events they own. The README also documents place search, image uploads, notifications, participant lists, and registration management. Dart implementation excerpts were not provided, so feature-to-provider and provider-to-repository calls are not asserted; documented API interactions are cited to the README.
Main entry points: auth_provider.dart Authentication state · main.dart Flutter app · main_shell.dart Navigation shell · login_screen.dart Login and signup
Components 26
Application Core
- Flutter app
lib/main.dart - Navigation shell
lib/core/router/main_shell.dart - App routing
lib/core/router/app_router.dart - REST client
lib/core/network/dio_client.dart - Token storage
lib/core/storage/token_storage.dart
Accounts
- Login and signup
lib/features/auth/presentation/screens/login_screen.dart - Authentication state
lib/features/auth/presentation/providers/auth_provider.dart - Account access
lib/features/auth/data/auth_repository.dart - Profile screens
lib/features/profile/presentation/screens/profile_screen.dart - Profile actions
lib/features/profile/presentation/providers/profile_actions_provider.dart - Profile data
lib/features/profile/data/profile_repository.dart
Event Discovery and Management
- Event discovery
lib/features/events/presentation/screens/explore_screen.dart - Explore filters
lib/features/events/presentation/providers/explore_provider.dart - Event details
lib/features/events/presentation/screens/event_detail_screen.dart - Create and edit
lib/features/events/presentation/screens/event_form_screen.dart - Event data access
lib/features/events/data/event_repository.dart - Place search
lib/features/events/presentation/providers/place_search_provider.dart - Owned events
lib/features/events/presentation/screens/my_events_screen.dart
Participation and Updates
- My registrations
lib/features/registrations/presentation/screens/my_registrations_screen.dart - Registration actions
lib/features/registrations/presentation/providers/registration_actions_provider.dart - Registration data
lib/features/registrations/data/registration_repository.dart - Schedule participants
lib/features/registrations/presentation/screens/schedule_participants_screen.dart - Notifications
lib/features/notifications/presentation/screens/notifications_screen.dart - Notification data
lib/features/notifications/data/notification_repository.dart
Other components
- App user
- EventHub REST API
Connections 31
- App user → Flutter app: opens
README.md - Flutter app → Navigation shell: starts
- App user → Login and signup: signs in
README.md - Login and signup → Authentication state: submits credentials
- Authentication state → Account access: requests access
- Account access → EventHub REST API: authenticates
- App user → Event discovery: browses events
README.md - Event discovery → EventHub REST API: fetches filtered events
README.md - App user → Event details: opens event
README.md - Event details → EventHub REST API: loads event schedules
README.md - App user → My registrations: views registrations
README.md - My registrations → EventHub REST API: fetches registrations
README.md - App user → Registration actions: registers or cancels
README.md - Registration actions → EventHub REST API: updates registration
README.md - App user → Create and edit: creates or edits
README.md - Create and edit → EventHub REST API: saves event
README.md - App user → Owned events: manages events
README.md - Owned events → EventHub REST API: loads owned events
README.md - App user → Place search: searches places
README.md - Place search → EventHub REST API: requests suggestions
- App user → Schedule participants: views attendees
README.md - Schedule participants → EventHub REST API: loads attendees
README.md - App user → Notifications: checks updates
- Notifications → EventHub REST API: loads notifications
- App user → Profile screens: edits profile
README.md - Profile screens → Profile actions: changes profile
- Profile actions → Profile data: updates profile
- Profile data → EventHub REST API: saves profile
- REST client → EventHub REST API: sends REST requests
- Authentication state → Token storage: persists session
- Navigation shell → App routing: uses routes