How pankaj1662005/streamer_movie_app works
Project type and purpose
• StreamIt is a cross-platform, Flutter-based front-end application (mobile, desktop, web) that lets users browse and stream movies.
• It has no custom backend code in this repo, relying instead on third-party services (Firebase for auth, TMDB-style Movie APIs for data, AdMob for ads).
File structure
• Top-level platform folders: android, ios, linux, macos, windows, web – each contains the native embedding code for Flutter.
• lib/ – all Dart source:
• main.dart — application entry point
• splash_screen.dart, splash_screen2.dart — launch logic
• home_page.dart, streamer_home.dart — core UI screens
• admob/admob_manager.dart — ad service integration
• assets/animations – Lottie JSON files used in UI
• release/ – sample gifs/photos (documentation/demo)
• config files: pubspec.yaml, analysis_options.yaml, platform build scripts (Gradle, Xcode, CMake)
README for additional insights
• Describes features: browse trending movies, watch trailers, signup/login, save favorites
• Tech stack called out: Flutter/Dart, Firebase Auth, Movie APIs, Google Drive (APK distribution)
a. Main Components
• Flutter UI Layer – Widgets managing visual presentation (Splash, Home, Stream).
• Business/Service Layer – ad manager, authentication service, movie-API client.
• Data Layer – REST/HTTP client calls to Movie API; Firebase Auth SDK.
• Flutter Engine & Platform Channels – mediates between Dart code and native functionality.
• Native Embedders – Android, iOS, Linux, macOS, Windows, Web host apps.
• External Services – TMDB-style Movie API endpoint; Firebase Auth backend; AdMob network.
b. Relationships & Data Flow
1. User taps UI widget → Widget calls Service Layer API
2. Service Layer issues HTTP/Firebase requests via Dart packages
3. Requests go through Flutter Engine → Platform Channels → Native OS networking SDK
4. Responses bubble back: Native → Engine → Dart → Business Layer → UI updates
c. Architectural patterns & principles
• Layered architecture: presentation (Widgets) → domain/services → data providers
• Plugin-based extension: AdMob, Firebase, networking via pub packages
• Platform independence: single codebase, multiple native embedders
d. Key technologies & frameworks
• Flutter/Dart
• firebase_auth Flutter plugin
• http or dio for REST calls
• google_mobile_ads plugin for AdMob
• Lottie for animations