How mervatmagdy/movies works
Project type and purpose
• This is a Flutter-based mobile application (“movies”) targeting Android and iOS.
• Purpose: Allow users to browse, search, and save movies. It fetches data from an external movie API and uses Firebase (via firebase_utils.dart) to persist user watch-list data.
File structure
• Top-level:
• android/ios – platform-specific integration code and build config.
• lib/ – all Dart code broken into feature folders (Api, Home, Browser, Search, WatchList, movie_details, Model, plus main.dart).
• pubspec.yaml – package/dependency config.
• Patterns:
• MVVM-style separation: UI (screens, widgets) in each feature folder, ViewModels (naming ..._view_model.dart), Models (API response classes).
• API layer under lib/Api and lib/api – constants and manager for network calls.
• State management via Provider (see added_movie_provider.dart).
• Config files: flutter_native_splash.yaml, analysis_options.yaml, platform build scripts.