How gergesfaiz/movies works
Movies is a Flutter app for movie discovery and personal viewing lists. The principal workflow moves from onboarding and optional authentication into browse/search, then movie details; opened movies enter history and users can manage a watch list and profile. The README documents the Clean Architecture boundaries and Firebase/Dio roles, but sampled source excerpts contain no Dart implementation, so detailed call ownership is not independently verified; the graph uses documented relationships only.
Main entry points: movie_details_bloc.dart Movie details · movies_repository_impl.dart Movie repositories · home_screen.dart App navigation · auth_cubit.dart Authentication state
Components 24
App experience
- Onboarding
lib/features/movies/presentation/pages/onboarding_page.dart - App navigation
lib/features/movies/presentation/pages/home_screen.dart - Localization
lib/core/l10n/app_localizations.dart
Identity and profile
- Language state
lib/features/auth/presentation/cubit/app_language_cubit.dart - Sign-in pages
lib/features/auth/presentation/pages/login_page.dart - Authentication state
lib/features/auth/presentation/cubit/auth_cubit.dart - Auth repository
lib/features/auth/data/repositories/auth_repository_impl.dart - Firebase auth source
lib/features/auth/data/datasources/auth_remote_datasource.dart - Profile management
lib/features/auth/presentation/cubit/profile_cubit.dart
Movie discovery
- Browse and home
lib/features/movies/presentation/pages/browse_tab.dart - Movie search
lib/features/movies/presentation/bloc/search_bloc.dart - Movie state
lib/features/movies/presentation/bloc/movies_bloc.dart - Movie details
lib/features/movies/presentation/bloc/movie_details_bloc.dart - Watch list and history
lib/features/movies/presentation/bloc/user_movies_cubit.dart
Data and services
- Movie repositories
lib/features/movies/data/repositories/movies_repository_impl.dart - Personal movie repository
lib/features/movies/data/repositories/user_movies_repository_impl.dart - Movie API source
lib/features/movies/data/datasources/movies_remote_datasource.dart - Firestore movie source
lib/features/movies/data/datasources/user_movies_remote_datasource.dart - App preferences
lib/core/storage/app_preferences.dart
Other components
- Viewer
- Movie API
- Firebase Auth
- Cloud Firestore
- YouTube trailer
Connections 28
- Viewer → Onboarding: starts app
README.md - Viewer → Sign-in pages: signs in
README.md - Viewer → Browse and home: discovers movies
README.md - Onboarding → App navigation: continues to
- Sign-in pages → Authentication state: uses
README.md - Authentication state → Auth repository: uses cases
README.md - Auth repository → Firebase auth source: delegates to
README.md - Firebase auth source → Firebase Auth: authenticates with
README.md - Viewer → Profile management: manages account
README.md - Profile management → Authentication state: uses auth
- App navigation → Browse and home: shows tabs
- Browse and home → Movie state: browses
- Viewer → Movie search: searches
README.md - Viewer → Movie details: opens movie
README.md - Movie search → Movie repositories: uses cases
README.md - Movie state → Movie repositories: uses cases
README.md - Movie details → Movie repositories: loads details
README.md - Movie repositories → Movie API source: delegates to
README.md - Movie API source → Movie API: requests data
README.md - Movie details → Watch list and history: updates history
README.md - Viewer → Watch list and history: manages list
README.md - Watch list and history → Personal movie repository: uses cases
README.md - Personal movie repository → Firestore movie source: delegates to
README.md - Firestore movie source → Cloud Firestore: reads and writes
README.md - Movie details → YouTube trailer: opens trailer
README.md - Language state → App preferences: remembers language
README.md - App navigation → Localization: displays translations
README.md - Viewer → Language state: chooses language
README.md