How ghassenellili/horizon-social-network works
Horizon is a Flutter university social-network app for web and Android. The documented user journey is sign-in through Firebase Authentication, then profile creation or editing with university roles and Firestore persistence; the home screen provides a connected dashboard. The README also describes the animated splash, compressed profile photos, and planned member search and social interactions. Dart sources were not sampled, so links below rely on README statements; the tree alone does not establish runtime calls for every screen or planned feature.
Main entry points: profile_screen.dart Profile screen · profile_service.dart Profile service · login_screen.dart Login screen · auth_service.dart Auth service
Components 18
App experience
- App entry
lib/main.dart - Animated splash
lib/screens/splash/splash_screen.dart - App theme
lib/core/theme/app_theme.dart - Horizon background
lib/core/widgets/horizon_background.dart - User avatar
lib/core/widgets/user_avatar.dart - Home dashboard
lib/screens/home/home_screen.dart
Authentication
- Auth gate
lib/screens/auth/auth_gate.dart - Login screen
lib/screens/auth/login_screen.dart - Auth service
lib/services/auth_service.dart
Profiles and directory
- Profile screen
lib/screens/profile/profile_screen.dart - Member directory
lib/screens/profile/directory_screen.dart - User and roles
lib/models/app_user.dart - Profile service
lib/services/profile_service.dart - Image compressor
lib/core/utils/image_compressor.dart
Cloud services
- Firebase Authentication
- Cloud Firestore
- Firebase configuration
lib/firebase_options.dart
Other components
- University user
Connections 17
- University user → App entry: opens
- Login screen → Auth service: authenticates through
README.md - Auth service → Firebase Authentication: manages sessions
README.md - Auth gate → Firebase Authentication: routes by state
README.md - Profile screen → Profile service: reads and updates
README.md - Profile service → Cloud Firestore: persists profiles
README.md - Profile screen → User and roles: edits role data
README.md - Profile screen → Image compressor: compresses photos
README.md - Profile service → User and roles: stores user data
- Home dashboard → Auth service: manages session
README.md - Firebase configuration → Firebase Authentication: configures
- Firebase configuration → Cloud Firestore: configures
- Animated splash → Horizon background: uses
README.md - Login screen → Horizon background: uses
README.md - Profile screen → User avatar: previews profile
- University user → Login screen: signs in
README.md - University user → Profile screen: creates or edits
README.md