├── .gitignore
├── .metadata
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── movies_app
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
└── images
│ └── icon.png
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── core
│ ├── data
│ │ ├── error
│ │ │ ├── exceptions.dart
│ │ │ └── failure.dart
│ │ └── network
│ │ │ ├── api_constants.dart
│ │ │ └── error_message_model.dart
│ ├── domain
│ │ ├── entities
│ │ │ ├── media.dart
│ │ │ ├── media.g.dart
│ │ │ └── media_details.dart
│ │ └── usecase
│ │ │ └── base_use_case.dart
│ ├── presentation
│ │ ├── components
│ │ │ ├── circle_dot.dart
│ │ │ ├── custom_app_bar.dart
│ │ │ ├── custom_slider.dart
│ │ │ ├── details_card.dart
│ │ │ ├── error_screen.dart
│ │ │ ├── error_text.dart
│ │ │ ├── image_with_shimmer.dart
│ │ │ ├── loading_indicator.dart
│ │ │ ├── overview_section.dart
│ │ │ ├── section_header.dart
│ │ │ ├── section_listview.dart
│ │ │ ├── section_listview_card.dart
│ │ │ ├── section_title.dart
│ │ │ ├── slider_card.dart
│ │ │ ├── slider_card_image.dart
│ │ │ ├── vertical_listview.dart
│ │ │ └── vertical_listview_card.dart
│ │ └── pages
│ │ │ └── main_page.dart
│ ├── resources
│ │ ├── app_colors.dart
│ │ ├── app_constants.dart
│ │ ├── app_router.dart
│ │ ├── app_routes.dart
│ │ ├── app_strings.dart
│ │ ├── app_theme.dart
│ │ └── app_values.dart
│ ├── services
│ │ └── service_locator.dart
│ └── utils
│ │ ├── enums.dart
│ │ └── functions.dart
├── main.dart
├── movies
│ ├── data
│ │ ├── datasource
│ │ │ └── movies_remote_data_source.dart
│ │ ├── models
│ │ │ ├── cast_model.dart
│ │ │ ├── movie_details_model.dart
│ │ │ ├── movie_model.dart
│ │ │ └── review_model.dart
│ │ └── repository
│ │ │ └── movies_repository_impl.dart
│ ├── domain
│ │ ├── entities
│ │ │ ├── cast.dart
│ │ │ └── review.dart
│ │ ├── repository
│ │ │ └── movies_repository.dart
│ │ └── usecases
│ │ │ ├── get_all_popular_movies_usecase.dart
│ │ │ ├── get_all_top_rated_movies_usecase.dart
│ │ │ ├── get_movie_details_usecase.dart
│ │ │ └── get_movies_usecase.dart
│ └── presentation
│ │ ├── components
│ │ ├── avatar.dart
│ │ ├── cast_card.dart
│ │ ├── movie_card_details.dart
│ │ ├── review_card.dart
│ │ └── review_content.dart
│ │ ├── controllers
│ │ ├── movie_details_bloc
│ │ │ ├── movie_details_bloc.dart
│ │ │ ├── movie_details_event.dart
│ │ │ └── movie_details_state.dart
│ │ ├── movies_bloc
│ │ │ ├── movies_bloc.dart
│ │ │ ├── movies_event.dart
│ │ │ └── movies_state.dart
│ │ ├── popular_movies_bloc
│ │ │ ├── popular_movies_bloc.dart
│ │ │ ├── popular_movies_event.dart
│ │ │ └── popular_movies_state.dart
│ │ └── top_rated_movies_bloc
│ │ │ ├── top_rated_movies_bloc.dart
│ │ │ ├── top_rated_movies_event.dart
│ │ │ └── top_rated_movies_state.dart
│ │ └── views
│ │ ├── movie_details_view.dart
│ │ ├── movies_view.dart
│ │ ├── popular_movies_view.dart
│ │ └── top_rated_movies_view.dart
├── search
│ ├── data
│ │ ├── datasource
│ │ │ └── search_remote_data_source.dart
│ │ ├── models
│ │ │ └── search_result_item_model.dart
│ │ └── repository
│ │ │ └── search_repository_impl.dart
│ ├── domain
│ │ ├── entities
│ │ │ └── search_result_item.dart
│ │ ├── repository
│ │ │ └── search_repository.dart
│ │ └── usecases
│ │ │ └── search_usecase.dart
│ └── presentation
│ │ ├── components
│ │ ├── grid_view_card.dart
│ │ ├── no_results.dart
│ │ ├── search_field.dart
│ │ ├── search_grid_view.dart
│ │ └── search_text.dart
│ │ ├── controllers
│ │ └── search_bloc
│ │ │ ├── search_bloc.dart
│ │ │ ├── search_event.dart
│ │ │ └── search_state.dart
│ │ └── views
│ │ └── search_view.dart
├── tv_shows
│ ├── data
│ │ ├── datasource
│ │ │ └── tv_shows_remote_data_source.dart
│ │ ├── models
│ │ │ ├── episode_model.dart
│ │ │ ├── season_details_model.dart
│ │ │ ├── season_model.dart
│ │ │ ├── tv_show_details_model.dart
│ │ │ └── tv_show_model.dart
│ │ └── repository
│ │ │ └── tv_shows_repository_impl.dart
│ ├── domain
│ │ ├── entities
│ │ │ ├── episode.dart
│ │ │ ├── season.dart
│ │ │ └── season_details.dart
│ │ ├── repository
│ │ │ └── tv_shows_repository.dart
│ │ └── usecases
│ │ │ ├── get_all_popular_tv_shows_usecase.dart
│ │ │ ├── get_all_top_rated_tv_shows_usecase.dart
│ │ │ ├── get_season_details_usecase.dart
│ │ │ ├── get_tv_show_details_usecase.dart
│ │ │ └── get_tv_shows_usecase.dart
│ └── presentation
│ │ ├── components
│ │ ├── episode_card.dart
│ │ ├── episodes_widget.dart
│ │ ├── season_card.dart
│ │ ├── seasons_section.dart
│ │ └── tv_show_card_details.dart
│ │ ├── controllers
│ │ ├── popular_tv_shows_bloc
│ │ │ ├── popular_tv_shows_bloc.dart
│ │ │ ├── popular_tv_shows_event.dart
│ │ │ └── popular_tv_shows_state.dart
│ │ ├── top_rated_tv_shows_bloc
│ │ │ ├── top_rated_tv_shows_bloc.dart
│ │ │ ├── top_rated_tv_shows_event.dart
│ │ │ └── top_rated_tv_shows_state.dart
│ │ ├── tv_show_details_bloc
│ │ │ ├── tv_show_details_bloc.dart
│ │ │ ├── tv_show_details_event.dart
│ │ │ └── tv_show_details_state.dart
│ │ └── tv_shows_bloc
│ │ │ ├── tv_shows_bloc.dart
│ │ │ ├── tv_shows_event.dart
│ │ │ └── tv_shows_state.dart
│ │ └── views
│ │ ├── popular_tv_shows_view.dart
│ │ ├── top_rated_tv_shows_view.dart
│ │ ├── tv_show_details_view.dart
│ │ └── tv_shows_view.dart
└── watchlist
│ ├── data
│ ├── datasource
│ │ └── watchlist_local_data_source.dart
│ ├── models
│ │ └── watchlist_item_model.dart
│ └── repository
│ │ └── watchlist_repository_impl.dart
│ ├── domain
│ ├── repository
│ │ └── watchlist_repository.dart
│ └── usecases
│ │ ├── add_watchlist_item_usecase.dart
│ │ ├── check_if_item_added_usecase.dart
│ │ ├── get_watchlist_items_usecase.dart
│ │ └── remove_watchlist_item_usecase.dart
│ └── presentation
│ ├── components
│ └── empty_watchlist_text.dart
│ ├── controllers
│ └── watchlist_bloc
│ │ ├── watchlist_bloc.dart
│ │ ├── watchlist_event.dart
│ │ └── watchlist_state.dart
│ └── views
│ └── watchlist_view.dart
├── linux
├── .gitignore
├── CMakeLists.txt
├── flutter
│ ├── CMakeLists.txt
│ ├── generated_plugin_registrant.cc
│ ├── generated_plugin_registrant.h
│ └── generated_plugins.cmake
├── main.cc
├── my_application.cc
└── my_application.h
├── macos
├── .gitignore
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── app_icon_1024.png
│ │ ├── app_icon_128.png
│ │ ├── app_icon_16.png
│ │ ├── app_icon_256.png
│ │ ├── app_icon_32.png
│ │ ├── app_icon_512.png
│ │ └── app_icon_64.png
│ ├── Base.lproj
│ └── MainMenu.xib
│ ├── Configs
│ ├── AppInfo.xcconfig
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── Warnings.xcconfig
│ ├── DebugProfile.entitlements
│ ├── Info.plist
│ ├── MainFlutterWindow.swift
│ └── Release.entitlements
├── pubspec.lock
├── pubspec.yaml
├── screenshots
├── 01.png
├── 02.png
├── 03.png
├── 04.png
├── 05.png
├── 06.png
├── 07.png
└── 08.png
├── test
└── widget_test.dart
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ ├── Icon-512.png
│ ├── Icon-maskable-192.png
│ └── Icon-maskable-512.png
├── index.html
└── manifest.json
└── windows
├── .gitignore
├── CMakeLists.txt
├── flutter
├── CMakeLists.txt
├── generated_plugin_registrant.cc
├── generated_plugin_registrant.h
└── generated_plugins.cmake
└── runner
├── CMakeLists.txt
├── Runner.rc
├── flutter_window.cpp
├── flutter_window.h
├── main.cpp
├── resource.h
├── resources
└── app_icon.ico
├── runner.exe.manifest
├── utils.cpp
├── utils.h
├── win32_window.cpp
└── win32_window.h
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .packages
31 | .pub-cache/
32 | .pub/
33 | /build/
34 |
35 | # Symbolication related
36 | app.*.symbols
37 |
38 | # Obfuscation related
39 | app.*.map.json
40 |
41 | # Android Studio will place build artifacts here
42 | /android/app/debug
43 | /android/app/profile
44 | /android/app/release
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled.
5 |
6 | version:
7 | revision: d6260f127fe3f88c98231243b387b48448479bff
8 | channel: dev
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: d6260f127fe3f88c98231243b387b48448479bff
17 | base_revision: d6260f127fe3f88c98231243b387b48448479bff
18 | - platform: android
19 | create_revision: d6260f127fe3f88c98231243b387b48448479bff
20 | base_revision: d6260f127fe3f88c98231243b387b48448479bff
21 | - platform: ios
22 | create_revision: d6260f127fe3f88c98231243b387b48448479bff
23 | base_revision: d6260f127fe3f88c98231243b387b48448479bff
24 | - platform: linux
25 | create_revision: d6260f127fe3f88c98231243b387b48448479bff
26 | base_revision: d6260f127fe3f88c98231243b387b48448479bff
27 | - platform: macos
28 | create_revision: d6260f127fe3f88c98231243b387b48448479bff
29 | base_revision: d6260f127fe3f88c98231243b387b48448479bff
30 | - platform: web
31 | create_revision: d6260f127fe3f88c98231243b387b48448479bff
32 | base_revision: d6260f127fe3f88c98231243b387b48448479bff
33 | - platform: windows
34 | create_revision: d6260f127fe3f88c98231243b387b48448479bff
35 | base_revision: d6260f127fe3f88c98231243b387b48448479bff
36 |
37 | # User provided section
38 |
39 | # List of Local paths (relative to this file) that should be
40 | # ignored by the migrate tool.
41 | #
42 | # Files that are not part of the templates will be ignored by default.
43 | unmanaged_files:
44 | - 'lib/main.dart'
45 | - 'ios/Runner.xcodeproj/project.pbxproj'
46 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Movie App
3 | Movie app made in Flutter with clean architecture using BLoC, Hive and the movie db API.
4 |
5 | ## Features
6 | - Search feature
7 | - Watchlist feature
8 | - Now playing movies
9 | - Popular movies
10 | - Top rated movies
11 | - Movie details
12 | - Movie cast
13 | - Movie reviews
14 | - Similar movies
15 | - On air tv shows
16 | - Popular tv shows
17 | - Top rated tv shows
18 | - TV show details
19 | - Similar tv shows
20 | - TV show season details
21 |
22 |
23 | ## Screenshots
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 | ## Installation
36 | ### 1. Clone the repo
37 | ```bash
38 | git clone https://github.com/mohamadayash22/flutter-movie-app.git
39 | cd flutter-movie-app
40 | ```
41 | ### 2. Run pub get
42 | ```bash
43 | flutter pub get
44 | ```
45 | ### 3. Add your API key into api_constants file
46 | ```bash
47 | apiKey = 'YOUR_API_KEY';
48 | ```
49 | ### 4. Run the app
50 | ```bash
51 | flutter run
52 | ```
53 |
54 | ## Packages
55 | - [cached_network_image](https://pub.dev/packages/cached_network_image)
56 | - [carousel_slider](https://pub.dev/packages/carousel_slider)
57 | - [cupertino_icons](https://pub.dev/packages/cupertino_icons)
58 | - [dartz](https://pub.dev/packages/dartz)
59 | - [dio](https://pub.dev/packages/dio)
60 | - [equatable](https://pub.dev/packages/equatable)
61 | - [flutter_bloc](https://pub.dev/packages/flutter_bloc)
62 | - [flutter_rating_bar](https://pub.dev/packages/flutter_rating_bar)
63 | - [get_it](https://pub.dev/packages/get_it)
64 | - [go_router](https://pub.dev/packages/go_router)
65 | - [google_fonts](https://pub.dev/packages/google_fonts)
66 | - [hive](https://pub.dev/packages/hive)
67 | - [hive_flutter](https://pub.dev/packages/hive_flutter)
68 | - [path_provider](https://pub.dev/packages/path_provider)
69 | - [readmore](https://pub.dev/packages/readmore)
70 | - [shimmer](https://pub.dev/packages/shimmer)
71 | - [stream_transform](https://pub.dev/packages/stream_transform)
72 | - [url_launcher](https://pub.dev/packages/url_launcher)
73 |
74 |
75 | ## Acknowledgements
76 | This app is based on
77 | [Build a Movie App - FlutterFlow](https://www.youtube.com/watch?v=ZPkVRoa1AA8) YouTube video by [@abuanwar072](https://github.com/abuanwar072/), special thanks to Abu Anwar for his amazing videos and tutorials!
78 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 | always_specify_types: false
28 | sort_constructors_first: false
29 | always_use_package_imports: true
30 | avoid_dynamic_calls: false
31 | avoid_empty_else: true
32 | avoid_relative_lib_imports: true
33 | avoid_type_to_string: true
34 | avoid_types_as_parameter_names: true
35 | unnecessary_statements: true
36 |
37 |
38 | # Additional information about this file can be found at
39 | # https://dart.dev/guides/language/analysis-options
40 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 33
30 | ndkVersion flutter.ndkVersion
31 |
32 | compileOptions {
33 | sourceCompatibility JavaVersion.VERSION_1_8
34 | targetCompatibility JavaVersion.VERSION_1_8
35 | }
36 |
37 | kotlinOptions {
38 | jvmTarget = '1.8'
39 | }
40 |
41 | sourceSets {
42 | main.java.srcDirs += 'src/main/kotlin'
43 | }
44 |
45 | defaultConfig {
46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47 | applicationId "com.example.movies_app"
48 | // You can update the following values to match your application needs.
49 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
50 | minSdkVersion flutter.minSdkVersion
51 | targetSdkVersion flutter.targetSdkVersion
52 | versionCode flutterVersionCode.toInteger()
53 | versionName flutterVersionName
54 | }
55 |
56 | buildTypes {
57 | release {
58 | // TODO: Add your own signing config for the release build.
59 | // Signing with the debug keys for now, so `flutter run --release` works.
60 | signingConfig signingConfigs.debug
61 | }
62 | }
63 | }
64 |
65 | flutter {
66 | source '../..'
67 | }
68 |
69 | dependencies {
70 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
71 | }
72 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
8 |
16 |
20 |
24 |
25 |
26 |
27 |
28 |
29 |
31 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/movies_app/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.movies_app
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.7.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.2.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | tasks.register("clean", Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
6 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/assets/images/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/assets/images/icon.png
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 11.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohamadayash22/flutter-movie-app/6050506d62795b4fd96ac012b5453ee1ba2439b4/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | NSAppTransportSecurity
6 |
7 | NSAllowsArbitraryLoads
8 |
9 | CFBundleDevelopmentRegion
10 | $(DEVELOPMENT_LANGUAGE)
11 | CFBundleDisplayName
12 | Movie App
13 | CFBundleExecutable
14 | $(EXECUTABLE_NAME)
15 | CFBundleIdentifier
16 | $(PRODUCT_BUNDLE_IDENTIFIER)
17 | CFBundleInfoDictionaryVersion
18 | 6.0
19 | CFBundleName
20 | movies_app
21 | CFBundlePackageType
22 | APPL
23 | CFBundleShortVersionString
24 | $(FLUTTER_BUILD_NAME)
25 | CFBundleSignature
26 | ????
27 | CFBundleVersion
28 | $(FLUTTER_BUILD_NUMBER)
29 | LSRequiresIPhoneOS
30 |
31 | UILaunchStoryboardName
32 | LaunchScreen
33 | UIMainStoryboardFile
34 | Main
35 | LSApplicationQueriesSchemes
36 |
37 | youtube
38 |
39 | UISupportedInterfaceOrientations
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationLandscapeLeft
43 | UIInterfaceOrientationLandscapeRight
44 |
45 | UISupportedInterfaceOrientations~ipad
46 |
47 | UIInterfaceOrientationPortrait
48 | UIInterfaceOrientationPortraitUpsideDown
49 | UIInterfaceOrientationLandscapeLeft
50 | UIInterfaceOrientationLandscapeRight
51 |
52 | UIViewControllerBasedStatusBarAppearance
53 |
54 | CADisableMinimumFrameDurationOnPhone
55 |
56 | UIApplicationSupportsIndirectInputEvents
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/core/data/error/exceptions.dart:
--------------------------------------------------------------------------------
1 | import 'package:movies_app/core/data/network/error_message_model.dart';
2 |
3 | class ServerException implements Exception {
4 | final ErrorMessageModel errorMessageModel;
5 |
6 | const ServerException({required this.errorMessageModel});
7 | }
8 |
9 | class DatabaseException implements Exception {}
10 |
--------------------------------------------------------------------------------
/lib/core/data/error/failure.dart:
--------------------------------------------------------------------------------
1 | import 'package:equatable/equatable.dart';
2 |
3 | abstract class Failure extends Equatable {
4 | final String message;
5 |
6 | const Failure(this.message);
7 | @override
8 | List