├── .gitignore ├── .metadata ├── core ├── .gitignore ├── .metadata ├── CHANGELOG.md ├── LICENSE ├── README.md ├── android │ ├── app │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── io │ │ │ └── flutter │ │ │ └── plugins │ │ │ └── GeneratedPluginRegistrant.java │ └── local.properties ├── core.iml ├── lib │ ├── core.dart │ └── src │ │ ├── bloc │ │ ├── base_bloc.dart │ │ ├── movie_bloc.dart │ │ └── trailer_bloc.dart │ │ ├── data │ │ ├── network │ │ │ ├── endpoint.dart │ │ │ └── network_source.dart │ │ └── repositories │ │ │ └── movie_repo_impl.dart │ │ ├── domain │ │ ├── interactors │ │ │ ├── get_now_playing_movies.dart │ │ │ ├── get_trailers.dart │ │ │ └── use_case.dart │ │ └── repositories │ │ │ └── movie_repository.dart │ │ └── model │ │ ├── movie.dart │ │ └── trailer.dart ├── pubspec.lock └── pubspec.yaml ├── flutter_movie ├── README.md ├── android │ ├── .gitignore │ ├── app │ │ ├── build.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── dhytodev │ │ │ │ └── fluttermovieapp │ │ │ │ └── MainActivity.java │ │ │ └── res │ │ │ ├── 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 │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ └── settings.gradle ├── flutter_movie_app.iml ├── flutter_movie_app_android.iml ├── fonts │ ├── Merriweather-Bold.ttf │ ├── Merriweather-Italic.ttf │ └── Merriweather-Regular.ttf ├── ios │ ├── .gitignore │ ├── Flutter │ │ ├── AppFrameworkInfo.plist │ │ ├── Debug.xcconfig │ │ └── Release.xcconfig │ ├── Podfile │ ├── Podfile.lock │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ └── contents.xcworkspacedata │ └── Runner │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── 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 │ │ └── main.m ├── lib │ ├── di │ │ └── inject.dart │ ├── main.dart │ └── ui │ │ ├── base │ │ ├── base_bloc_scaffold_widget.dart │ │ ├── base_bloc_widget.dart │ │ └── base_widget.dart │ │ ├── common │ │ ├── collapsing_toolbar.dart │ │ ├── custom_shape_clipper.dart │ │ ├── my_text_styles.dart │ │ └── trailers.dart │ │ └── pages │ │ ├── detail_page.dart │ │ └── home │ │ ├── home_page.dart │ │ └── home_page_bottom.dart ├── pubspec.lock ├── pubspec.yaml └── test │ └── widget_test.dart └── flutter_web_movie ├── .gitignore ├── analysis_options.yaml ├── android ├── app │ └── src │ │ └── main │ │ └── java │ │ └── io │ │ └── flutter │ │ └── plugins │ │ └── GeneratedPluginRegistrant.java └── local.properties ├── flutter_web_movie.iml ├── ios ├── Flutter │ └── Generated.xcconfig └── Runner │ ├── GeneratedPluginRegistrant.h │ └── GeneratedPluginRegistrant.m ├── lib ├── di │ └── inject.dart └── main.dart ├── pubspec.yaml └── web ├── index.html └── main.dart /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .atom/ 3 | .dart_tool/ 4 | .idea 5 | .vscode/ 6 | .packages 7 | .pub/ 8 | build/ 9 | ios/.generated/ 10 | packages 11 | .flutter-plugins 12 | -------------------------------------------------------------------------------- /.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 and should not be manually edited. 5 | 6 | version: 7 | revision: 5a58b36e36b8d7aace89d3950e6deb307956a6a0 8 | channel: beta 9 | -------------------------------------------------------------------------------- /core/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .dart_tool/ 3 | 4 | .packages 5 | .pub/ 6 | 7 | build/ 8 | ios/.generated/ 9 | ios/Flutter/Generated.xcconfig 10 | ios/Runner/GeneratedPluginRegistrant.* 11 | -------------------------------------------------------------------------------- /core/.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 and should not be manually edited. 5 | 6 | version: 7 | revision: 5391447fae6209bb21a89e6a5a6583cac1af9b4b 8 | channel: stable 9 | 10 | project_type: package 11 | -------------------------------------------------------------------------------- /core/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## [0.0.1] - TODO: Add release date. 2 | 3 | * TODO: Describe initial release. 4 | -------------------------------------------------------------------------------- /core/LICENSE: -------------------------------------------------------------------------------- 1 | TODO: Add your license here. 2 | -------------------------------------------------------------------------------- /core/README.md: -------------------------------------------------------------------------------- 1 | # movie_bloc 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Dart 8 | [package](https://flutter.io/developing-packages/), 9 | a library module containing code that can be shared easily across 10 | multiple Flutter or Dart projects. 11 | 12 | For help getting started with Flutter, view our 13 | [online documentation](https://flutter.io/docs), which offers tutorials, 14 | samples, guidance on mobile development, and a full API reference. 15 | -------------------------------------------------------------------------------- /core/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java: -------------------------------------------------------------------------------- 1 | package io.flutter.plugins; 2 | 3 | import io.flutter.plugin.common.PluginRegistry; 4 | 5 | /** 6 | * Generated file. Do not edit. 7 | */ 8 | public final class GeneratedPluginRegistrant { 9 | public static void registerWith(PluginRegistry registry) { 10 | if (alreadyRegisteredWith(registry)) { 11 | return; 12 | } 13 | } 14 | 15 | private static boolean alreadyRegisteredWith(PluginRegistry registry) { 16 | final String key = GeneratedPluginRegistrant.class.getCanonicalName(); 17 | if (registry.hasPlugin(key)) { 18 | return true; 19 | } 20 | registry.registrarFor(key); 21 | return false; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /core/android/local.properties: -------------------------------------------------------------------------------- 1 | sdk.dir=/Users/izadalab/Documents/playground/android/sdk 2 | flutter.sdk=/Users/izadalab/Documents/playground/flutter/flutter -------------------------------------------------------------------------------- /core/core.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /core/lib/core.dart: -------------------------------------------------------------------------------- 1 | library core; 2 | 3 | export 'package:core/src/bloc/base_bloc.dart'; 4 | export 'package:core/src/bloc/movie_bloc.dart'; 5 | export 'package:core/src/bloc/trailer_bloc.dart'; 6 | export 'package:core/src/data/network/endpoint.dart'; 7 | export 'package:core/src/data/network/network_source.dart'; 8 | export 'package:core/src/data/repositories/movie_repo_impl.dart'; 9 | export 'package:core/src/domain/interactors/get_now_playing_movies.dart'; 10 | export 'package:core/src/domain/interactors/get_trailers.dart'; 11 | export 'package:core/src/domain/interactors/use_case.dart'; 12 | export 'package:core/src/domain/repositories/movie_repository.dart'; 13 | export 'package:core/src/model/movie.dart'; 14 | export 'package:core/src/model/trailer.dart'; 15 | -------------------------------------------------------------------------------- /core/lib/src/bloc/base_bloc.dart: -------------------------------------------------------------------------------- 1 | import 'package:rxdart/rxdart.dart'; 2 | 3 | class BaseBloc { 4 | final BehaviorSubject _error = BehaviorSubject(); 5 | 6 | Sink get error => _error.sink; 7 | 8 | Stream get errorStream => _error.stream; 9 | 10 | void dispose() { 11 | _error.close(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /core/lib/src/bloc/movie_bloc.dart: -------------------------------------------------------------------------------- 1 | import 'package:core/core.dart'; 2 | import 'package:core/src/bloc/base_bloc.dart'; 3 | import 'package:core/src/domain/interactors/get_now_playing_movies.dart'; 4 | 5 | class MovieBloc extends BaseBloc { 6 | GetNowPlayingMovies _getNowPlayingMoviesUseCase; 7 | 8 | MovieBloc(this._getNowPlayingMoviesUseCase) { 9 | _getNowPlayingMoviesUseCase.execute(); 10 | 11 | _getNowPlayingMoviesUseCase.error 12 | .listen((errorMessage) => error.add(errorMessage)); 13 | } 14 | 15 | Stream> getMovies() => _getNowPlayingMoviesUseCase.movies; 16 | 17 | Stream errorMessage() => _getNowPlayingMoviesUseCase.error; 18 | 19 | @override 20 | void dispose() { 21 | super.dispose(); 22 | _getNowPlayingMoviesUseCase.dispose(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /core/lib/src/bloc/trailer_bloc.dart: -------------------------------------------------------------------------------- 1 | import 'package:core/core.dart'; 2 | import 'package:core/src/domain/interactors/get_trailers.dart'; 3 | import 'package:rxdart/rxdart.dart'; 4 | 5 | class TrailerBloc extends BaseBloc { 6 | BehaviorSubject _movieId = BehaviorSubject(); 7 | 8 | Sink get movieId => _movieId.sink; 9 | 10 | final GetTrailers _getTrailersUseCase; 11 | 12 | TrailerBloc(this._getTrailersUseCase) { 13 | _movieId.stream 14 | .listen((movieId) => _getTrailersUseCase.execute(params: movieId)); 15 | 16 | _getTrailersUseCase.errorMessage 17 | .listen((errorMessage) => error.add(errorMessage)); 18 | } 19 | 20 | Stream> getTrailers() => _getTrailersUseCase.trailers; 21 | 22 | Stream errorMessage() => _getTrailersUseCase.errorMessage; 23 | 24 | @override 25 | void dispose() { 26 | super.dispose(); 27 | _movieId.close(); 28 | _getTrailersUseCase.dispose(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /core/lib/src/data/network/endpoint.dart: -------------------------------------------------------------------------------- 1 | import 'package:dio/dio.dart'; 2 | 3 | const BASE_URL = 'https://api.themoviedb.org/3/movie'; 4 | const API_KEY = '678ef42a1b584848591cbd02ac3899c3'; 5 | const POSTER_PATH_URL = 'https://image.tmdb.org/t/p/'; 6 | const BACKDROP_PATH_URL = 'https://image.tmdb.org/t/p/w500'; 7 | 8 | class Config { 9 | static Dio instance() { 10 | Dio dio = Dio(); 11 | dio.options.baseUrl = BASE_URL; 12 | dio.options.connectTimeout = 20000; 13 | dio.options.receiveTimeout = 10000; 14 | 15 | return dio; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /core/lib/src/data/network/network_source.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'dart:convert'; 3 | 4 | import 'package:core/core.dart'; 5 | import 'package:http/http.dart' as http; 6 | 7 | import 'endpoint.dart'; 8 | 9 | class MovieNetworkSource { 10 | Future getNowPlayingMovies() async { 11 | try { 12 | var response = await Config.instance() 13 | .get('/now_playing', queryParameters: {"api_key": API_KEY}); 14 | 15 | print(response); 16 | 17 | return MovieResponse.fromJSON(response.data); 18 | } catch (error) { 19 | return MovieResponse.errorValue(error.toString()); 20 | } 21 | } 22 | 23 | Future getTrailersByMovieId(int movieId) async { 24 | var response = await Config.instance() 25 | .get('/$movieId/videos', queryParameters: {"api_key": API_KEY}); 26 | 27 | return TrailerResponse.fromJson(response.data); 28 | } 29 | 30 | Future getMovies() async { 31 | final url = '$BASE_URL/upcoming?api_key=$API_KEY'; 32 | 33 | var response = await http 34 | .get(url) 35 | .then((response) => (response.body)) 36 | .then(json.decode) 37 | .catchError((Exception e) => print('Error ${e.toString()}')); 38 | 39 | print(response.toString()); 40 | 41 | MovieResponse movieResponse = MovieResponse.fromJSON(response); 42 | 43 | return movieResponse; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /core/lib/src/data/repositories/movie_repo_impl.dart: -------------------------------------------------------------------------------- 1 | import 'package:core/src/data/network/network_source.dart'; 2 | import 'package:core/src/domain/repositories/movie_repository.dart'; 3 | import 'package:core/src/model/movie.dart'; 4 | import 'package:core/src/model/trailer.dart'; 5 | import 'package:rxdart/rxdart.dart'; 6 | 7 | class MovieRepoImpl extends MovieRepo { 8 | @override 9 | Observable> getNowPlayingMovies() { 10 | return Observable.fromFuture(MovieNetworkSource().getMovies()) 11 | .map((movieResponse) => movieResponse.movies); 12 | } 13 | 14 | @override 15 | Observable> getTrailersByMovieId(int movieId) { 16 | return Observable.fromFuture( 17 | MovieNetworkSource().getTrailersByMovieId(movieId)) 18 | .map((trailerResponse) => trailerResponse.trailers); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /core/lib/src/domain/interactors/get_now_playing_movies.dart: -------------------------------------------------------------------------------- 1 | import 'package:core/core.dart'; 2 | import 'package:core/src/domain/repositories/movie_repository.dart'; 3 | import 'package:core/src/model/movie.dart'; 4 | import 'package:rxdart/rxdart.dart'; 5 | import 'package:rxdart/subjects.dart'; 6 | 7 | import 'use_case.dart'; 8 | 9 | class GetNowPlayingMovies extends UseCase { 10 | BehaviorSubject> _movies = BehaviorSubject(); 11 | BehaviorSubject _error = BehaviorSubject(); 12 | 13 | Stream> get movies => _movies.stream; 14 | 15 | Stream get error => _error.stream; 16 | 17 | GetNowPlayingMovies(MovieRepo repository) : super(repository); 18 | 19 | @override 20 | void execute({params}) { 21 | repository.getNowPlayingMovies().listen( 22 | (movies) => _movies.sink.add(movies), 23 | onError: (error) => _error.sink.add(error.toString())); 24 | } 25 | 26 | @override 27 | void dispose() { 28 | _movies.close(); 29 | _error.close(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /core/lib/src/domain/interactors/get_trailers.dart: -------------------------------------------------------------------------------- 1 | import 'package:core/src/domain/repositories/movie_repository.dart'; 2 | import 'package:core/src/model/trailer.dart'; 3 | import 'package:rxdart/rxdart.dart'; 4 | 5 | import 'use_case.dart'; 6 | 7 | class GetTrailers extends UseCase { 8 | BehaviorSubject> _trailers = BehaviorSubject(); 9 | BehaviorSubject _errorMessage = BehaviorSubject(); 10 | 11 | Stream> get trailers => _trailers.stream; 12 | 13 | Stream get errorMessage => _errorMessage.stream; 14 | 15 | GetTrailers(MovieRepo repository) : super(repository); 16 | 17 | Observable> getTrailers(int movieId) => 18 | repository.getTrailersByMovieId(movieId); 19 | 20 | @override 21 | void execute({int params}) { 22 | repository.getTrailersByMovieId(params).listen( 23 | (trailers) => _trailers.sink.add(trailers), 24 | onError: (error) => _errorMessage.sink.add(error.toString())); 25 | } 26 | 27 | @override 28 | void dispose() { 29 | _trailers.close(); 30 | _errorMessage.close(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /core/lib/src/domain/interactors/use_case.dart: -------------------------------------------------------------------------------- 1 | abstract class UseCase { 2 | R _repository; 3 | 4 | UseCase(this._repository); 5 | 6 | R get repository => _repository; 7 | 8 | void execute({T params}); 9 | 10 | void dispose(); 11 | } 12 | -------------------------------------------------------------------------------- /core/lib/src/domain/repositories/movie_repository.dart: -------------------------------------------------------------------------------- 1 | import 'package:core/src/model/movie.dart'; 2 | import 'package:core/src/model/trailer.dart'; 3 | import 'package:rxdart/rxdart.dart'; 4 | 5 | abstract class MovieRepo { 6 | Observable> getNowPlayingMovies(); 7 | 8 | Observable> getTrailersByMovieId(int movieId); 9 | } 10 | -------------------------------------------------------------------------------- /core/lib/src/model/movie.dart: -------------------------------------------------------------------------------- 1 | class MovieResponse { 2 | final int pageIndex; 3 | final int totalResults; 4 | final int totalPages; 5 | final List movies; 6 | 7 | MovieResponse.fromJSON(Map json) 8 | : pageIndex = json['page'], 9 | totalResults = json['total_results'], 10 | totalPages = json['total_pages'], 11 | movies = (json['results'] as List) 12 | .map((json) => Movie.fromJSON(json)) 13 | .toList(); 14 | 15 | static errorValue(String error) => print(error); 16 | } 17 | 18 | class Movie { 19 | final int id; 20 | final voteAverage; 21 | final String title; 22 | final String posterPath; 23 | final String overview; 24 | final String backdropPath; 25 | final String releaseDate; 26 | final int voteCount; 27 | 28 | Movie(this.backdropPath, this.voteCount, this.releaseDate, 29 | {this.id, this.voteAverage, this.title, this.posterPath, this.overview}); 30 | 31 | Movie.fromJSON(Map json) 32 | : id = json['id'], 33 | voteAverage = json['vote_average'], 34 | title = json['title'], 35 | posterPath = json['poster_path'], 36 | overview = json['overview'], 37 | backdropPath = json['backdrop_path'], 38 | voteCount = json['vote_count'], 39 | releaseDate = json['release_date']; 40 | } 41 | -------------------------------------------------------------------------------- /core/lib/src/model/trailer.dart: -------------------------------------------------------------------------------- 1 | class TrailerResponse { 2 | final int id; 3 | 4 | final List trailers; 5 | 6 | TrailerResponse.fromJson(Map json) 7 | : id = json['id'], 8 | trailers = (json['results'] as List) 9 | .map((trailer) => Trailer.fromJson(trailer)) 10 | .toList(); 11 | } 12 | 13 | class Trailer { 14 | String key; 15 | 16 | Trailer({this.key}); 17 | 18 | Trailer.fromJson(Map json) : key = json['key']; 19 | } 20 | 21 | String getImageVideoUrl(String key) { 22 | return 'https://i1.ytimg.com/vi/$key/0.jpg'; 23 | } 24 | -------------------------------------------------------------------------------- /core/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://www.dartlang.org/tools/pub/glossary#lockfile 3 | packages: 4 | analyzer: 5 | dependency: transitive 6 | description: 7 | name: analyzer 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "0.34.3" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.5.1" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.0.8" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.0.4" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.2" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.14.11" 46 | convert: 47 | dependency: transitive 48 | description: 49 | name: convert 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.1.1" 53 | cookie_jar: 54 | dependency: transitive 55 | description: 56 | name: cookie_jar 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "0.0.7" 60 | crypto: 61 | dependency: transitive 62 | description: 63 | name: crypto 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "2.0.6" 67 | csslib: 68 | dependency: transitive 69 | description: 70 | name: csslib 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "0.14.6" 74 | dio: 75 | dependency: "direct main" 76 | description: 77 | name: dio 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "2.0.1" 81 | front_end: 82 | dependency: transitive 83 | description: 84 | name: front_end 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "0.1.9+1" 88 | glob: 89 | dependency: transitive 90 | description: 91 | name: glob 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "1.1.7" 95 | html: 96 | dependency: transitive 97 | description: 98 | name: html 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "0.13.3+3" 102 | http: 103 | dependency: "direct main" 104 | description: 105 | name: http 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "0.12.0+1" 109 | http_multi_server: 110 | dependency: transitive 111 | description: 112 | name: http_multi_server 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "2.0.5" 116 | http_parser: 117 | dependency: transitive 118 | description: 119 | name: http_parser 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "3.1.3" 123 | io: 124 | dependency: transitive 125 | description: 126 | name: io 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "0.3.3" 130 | js: 131 | dependency: transitive 132 | description: 133 | name: js 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "0.6.1+1" 137 | json_rpc_2: 138 | dependency: transitive 139 | description: 140 | name: json_rpc_2 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "2.0.9" 144 | kernel: 145 | dependency: transitive 146 | description: 147 | name: kernel 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "0.3.9+1" 151 | logging: 152 | dependency: transitive 153 | description: 154 | name: logging 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "0.11.3+2" 158 | matcher: 159 | dependency: transitive 160 | description: 161 | name: matcher 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "0.12.3+1" 165 | meta: 166 | dependency: transitive 167 | description: 168 | name: meta 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "1.1.6" 172 | mime: 173 | dependency: transitive 174 | description: 175 | name: mime 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "0.9.6+2" 179 | mockito: 180 | dependency: "direct dev" 181 | description: 182 | name: mockito 183 | url: "https://pub.dartlang.org" 184 | source: hosted 185 | version: "4.0.0" 186 | multi_server_socket: 187 | dependency: transitive 188 | description: 189 | name: multi_server_socket 190 | url: "https://pub.dartlang.org" 191 | source: hosted 192 | version: "1.0.2" 193 | node_preamble: 194 | dependency: transitive 195 | description: 196 | name: node_preamble 197 | url: "https://pub.dartlang.org" 198 | source: hosted 199 | version: "1.4.4" 200 | package_config: 201 | dependency: transitive 202 | description: 203 | name: package_config 204 | url: "https://pub.dartlang.org" 205 | source: hosted 206 | version: "1.0.5" 207 | package_resolver: 208 | dependency: transitive 209 | description: 210 | name: package_resolver 211 | url: "https://pub.dartlang.org" 212 | source: hosted 213 | version: "1.0.6" 214 | path: 215 | dependency: transitive 216 | description: 217 | name: path 218 | url: "https://pub.dartlang.org" 219 | source: hosted 220 | version: "1.6.2" 221 | plugin: 222 | dependency: transitive 223 | description: 224 | name: plugin 225 | url: "https://pub.dartlang.org" 226 | source: hosted 227 | version: "0.2.0+3" 228 | pool: 229 | dependency: transitive 230 | description: 231 | name: pool 232 | url: "https://pub.dartlang.org" 233 | source: hosted 234 | version: "1.4.0" 235 | pub_semver: 236 | dependency: transitive 237 | description: 238 | name: pub_semver 239 | url: "https://pub.dartlang.org" 240 | source: hosted 241 | version: "1.4.2" 242 | rxdart: 243 | dependency: "direct main" 244 | description: 245 | name: rxdart 246 | url: "https://pub.dartlang.org" 247 | source: hosted 248 | version: "0.20.0" 249 | shelf: 250 | dependency: transitive 251 | description: 252 | name: shelf 253 | url: "https://pub.dartlang.org" 254 | source: hosted 255 | version: "0.7.4" 256 | shelf_packages_handler: 257 | dependency: transitive 258 | description: 259 | name: shelf_packages_handler 260 | url: "https://pub.dartlang.org" 261 | source: hosted 262 | version: "1.0.4" 263 | shelf_static: 264 | dependency: transitive 265 | description: 266 | name: shelf_static 267 | url: "https://pub.dartlang.org" 268 | source: hosted 269 | version: "0.2.8" 270 | shelf_web_socket: 271 | dependency: transitive 272 | description: 273 | name: shelf_web_socket 274 | url: "https://pub.dartlang.org" 275 | source: hosted 276 | version: "0.2.2+4" 277 | source_map_stack_trace: 278 | dependency: transitive 279 | description: 280 | name: source_map_stack_trace 281 | url: "https://pub.dartlang.org" 282 | source: hosted 283 | version: "1.1.5" 284 | source_maps: 285 | dependency: transitive 286 | description: 287 | name: source_maps 288 | url: "https://pub.dartlang.org" 289 | source: hosted 290 | version: "0.10.8" 291 | source_span: 292 | dependency: transitive 293 | description: 294 | name: source_span 295 | url: "https://pub.dartlang.org" 296 | source: hosted 297 | version: "1.4.1" 298 | stack_trace: 299 | dependency: transitive 300 | description: 301 | name: stack_trace 302 | url: "https://pub.dartlang.org" 303 | source: hosted 304 | version: "1.9.3" 305 | stream_channel: 306 | dependency: transitive 307 | description: 308 | name: stream_channel 309 | url: "https://pub.dartlang.org" 310 | source: hosted 311 | version: "1.6.8" 312 | string_scanner: 313 | dependency: transitive 314 | description: 315 | name: string_scanner 316 | url: "https://pub.dartlang.org" 317 | source: hosted 318 | version: "1.0.4" 319 | term_glyph: 320 | dependency: transitive 321 | description: 322 | name: term_glyph 323 | url: "https://pub.dartlang.org" 324 | source: hosted 325 | version: "1.1.0" 326 | test: 327 | dependency: "direct dev" 328 | description: 329 | name: test 330 | url: "https://pub.dartlang.org" 331 | source: hosted 332 | version: "1.5.1+1" 333 | test_api: 334 | dependency: transitive 335 | description: 336 | name: test_api 337 | url: "https://pub.dartlang.org" 338 | source: hosted 339 | version: "0.2.1" 340 | test_core: 341 | dependency: transitive 342 | description: 343 | name: test_core 344 | url: "https://pub.dartlang.org" 345 | source: hosted 346 | version: "0.2.0+1" 347 | typed_data: 348 | dependency: transitive 349 | description: 350 | name: typed_data 351 | url: "https://pub.dartlang.org" 352 | source: hosted 353 | version: "1.1.6" 354 | utf: 355 | dependency: transitive 356 | description: 357 | name: utf 358 | url: "https://pub.dartlang.org" 359 | source: hosted 360 | version: "0.9.0+5" 361 | vm_service_client: 362 | dependency: transitive 363 | description: 364 | name: vm_service_client 365 | url: "https://pub.dartlang.org" 366 | source: hosted 367 | version: "0.2.6" 368 | watcher: 369 | dependency: transitive 370 | description: 371 | name: watcher 372 | url: "https://pub.dartlang.org" 373 | source: hosted 374 | version: "0.9.7+10" 375 | web_socket_channel: 376 | dependency: transitive 377 | description: 378 | name: web_socket_channel 379 | url: "https://pub.dartlang.org" 380 | source: hosted 381 | version: "1.0.9" 382 | yaml: 383 | dependency: transitive 384 | description: 385 | name: yaml 386 | url: "https://pub.dartlang.org" 387 | source: hosted 388 | version: "2.1.15" 389 | sdks: 390 | dart: ">=2.2.0 <3.0.0" 391 | -------------------------------------------------------------------------------- /core/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: core 2 | description: A new Flutter project. 3 | version: 0.0.1 4 | author: 5 | homepage: 6 | 7 | environment: 8 | sdk: ">=2.2.0 <3.0.0" 9 | 10 | dependencies: 11 | rxdart: 12 | dio: 13 | http: 14 | 15 | dev_dependencies: 16 | test: 17 | mockito: 18 | 19 | -------------------------------------------------------------------------------- /flutter_movie/README.md: -------------------------------------------------------------------------------- 1 | # flutter_movie_app 2 | 3 | A new Flutter application. 4 | 5 | ## Getting Started 6 | 7 | For help getting started with Flutter, view our online 8 | [documentation](https://flutter.io/). 9 | -------------------------------------------------------------------------------- /flutter_movie/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | *.class 3 | .gradle 4 | /local.properties 5 | /.idea/workspace.xml 6 | /.idea/libraries 7 | .DS_Store 8 | /build 9 | /captures 10 | GeneratedPluginRegistrant.java 11 | -------------------------------------------------------------------------------- /flutter_movie/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 | apply plugin: 'com.android.application' 15 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 16 | 17 | android { 18 | compileSdkVersion 27 19 | 20 | lintOptions { 21 | disable 'InvalidPackage' 22 | } 23 | 24 | defaultConfig { 25 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 26 | applicationId "com.dhytodev.fluttermovieapp" 27 | minSdkVersion 16 28 | targetSdkVersion 27 29 | versionCode 1 30 | versionName "1.0" 31 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 32 | } 33 | 34 | buildTypes { 35 | release { 36 | // TODO: Add your own signing config for the release build. 37 | // Signing with the debug keys for now, so `flutter run --release` works. 38 | signingConfig signingConfigs.debug 39 | } 40 | } 41 | } 42 | 43 | flutter { 44 | source '../..' 45 | } 46 | 47 | dependencies { 48 | testImplementation 'junit:junit:4.12' 49 | androidTestImplementation 'com.android.support.test:runner:1.0.1' 50 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 51 | } 52 | -------------------------------------------------------------------------------- /flutter_movie/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 15 | 19 | 26 | 30 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /flutter_movie/android/app/src/main/java/com/dhytodev/fluttermovieapp/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.dhytodev.fluttermovieapp; 2 | 3 | import android.os.Bundle; 4 | 5 | import io.flutter.app.FlutterActivity; 6 | import io.flutter.plugins.GeneratedPluginRegistrant; 7 | 8 | public class MainActivity extends FlutterActivity { 9 | @Override 10 | protected void onCreate(Bundle savedInstanceState) { 11 | super.onCreate(savedInstanceState); 12 | GeneratedPluginRegistrant.registerWith(this); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /flutter_movie/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /flutter_movie/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /flutter_movie/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /flutter_movie/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /flutter_movie/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /flutter_movie/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /flutter_movie/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /flutter_movie/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.1.2' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /flutter_movie/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /flutter_movie/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /flutter_movie/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip 7 | -------------------------------------------------------------------------------- /flutter_movie/android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # Attempt to set APP_HOME 46 | # Resolve links: $0 may be a link 47 | PRG="$0" 48 | # Need this for relative symlinks. 49 | while [ -h "$PRG" ] ; do 50 | ls=`ls -ld "$PRG"` 51 | link=`expr "$ls" : '.*-> \(.*\)$'` 52 | if expr "$link" : '/.*' > /dev/null; then 53 | PRG="$link" 54 | else 55 | PRG=`dirname "$PRG"`"/$link" 56 | fi 57 | done 58 | SAVED="`pwd`" 59 | cd "`dirname \"$PRG\"`/" >/dev/null 60 | APP_HOME="`pwd -P`" 61 | cd "$SAVED" >/dev/null 62 | 63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 64 | 65 | # Determine the Java command to use to start the JVM. 66 | if [ -n "$JAVA_HOME" ] ; then 67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 68 | # IBM's JDK on AIX uses strange locations for the executables 69 | JAVACMD="$JAVA_HOME/jre/sh/java" 70 | else 71 | JAVACMD="$JAVA_HOME/bin/java" 72 | fi 73 | if [ ! -x "$JAVACMD" ] ; then 74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 75 | 76 | Please set the JAVA_HOME variable in your environment to match the 77 | location of your Java installation." 78 | fi 79 | else 80 | JAVACMD="java" 81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 82 | 83 | Please set the JAVA_HOME variable in your environment to match the 84 | location of your Java installation." 85 | fi 86 | 87 | # Increase the maximum file descriptors if we can. 88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 89 | MAX_FD_LIMIT=`ulimit -H -n` 90 | if [ $? -eq 0 ] ; then 91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 92 | MAX_FD="$MAX_FD_LIMIT" 93 | fi 94 | ulimit -n $MAX_FD 95 | if [ $? -ne 0 ] ; then 96 | warn "Could not set maximum file descriptor limit: $MAX_FD" 97 | fi 98 | else 99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 100 | fi 101 | fi 102 | 103 | # For Darwin, add options to specify how the application appears in the dock 104 | if $darwin; then 105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 106 | fi 107 | 108 | # For Cygwin, switch paths to Windows format before running java 109 | if $cygwin ; then 110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 112 | JAVACMD=`cygpath --unix "$JAVACMD"` 113 | 114 | # We build the pattern for arguments to be converted via cygpath 115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 116 | SEP="" 117 | for dir in $ROOTDIRSRAW ; do 118 | ROOTDIRS="$ROOTDIRS$SEP$dir" 119 | SEP="|" 120 | done 121 | OURCYGPATTERN="(^($ROOTDIRS))" 122 | # Add a user-defined pattern to the cygpath arguments 123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 125 | fi 126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 127 | i=0 128 | for arg in "$@" ; do 129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 131 | 132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 134 | else 135 | eval `echo args$i`="\"$arg\"" 136 | fi 137 | i=$((i+1)) 138 | done 139 | case $i in 140 | (0) set -- ;; 141 | (1) set -- "$args0" ;; 142 | (2) set -- "$args0" "$args1" ;; 143 | (3) set -- "$args0" "$args1" "$args2" ;; 144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 150 | esac 151 | fi 152 | 153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 154 | function splitJvmOpts() { 155 | JVM_OPTS=("$@") 156 | } 157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 159 | 160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 161 | -------------------------------------------------------------------------------- /flutter_movie/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /flutter_movie/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /flutter_movie/flutter_movie_app.iml: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /flutter_movie/flutter_movie_app_android.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /flutter_movie/fonts/Merriweather-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/fonts/Merriweather-Bold.ttf -------------------------------------------------------------------------------- /flutter_movie/fonts/Merriweather-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/fonts/Merriweather-Italic.ttf -------------------------------------------------------------------------------- /flutter_movie/fonts/Merriweather-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/fonts/Merriweather-Regular.ttf -------------------------------------------------------------------------------- /flutter_movie/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | *.pbxuser 16 | *.mode1v3 17 | *.mode2v3 18 | *.perspectivev3 19 | 20 | !default.pbxuser 21 | !default.mode1v3 22 | !default.mode2v3 23 | !default.perspectivev3 24 | 25 | xcuserdata 26 | 27 | *.moved-aside 28 | 29 | *.pyc 30 | *sync/ 31 | Icon? 32 | .tags* 33 | 34 | /Flutter/app.flx 35 | /Flutter/app.zip 36 | /Flutter/flutter_assets/ 37 | /Flutter/App.framework 38 | /Flutter/Flutter.framework 39 | /Flutter/Generated.xcconfig 40 | /ServiceDefinitions.json 41 | 42 | Pods/ 43 | -------------------------------------------------------------------------------- /flutter_movie/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 | UIRequiredDeviceCapabilities 24 | 25 | arm64 26 | 27 | MinimumOSVersion 28 | 8.0 29 | 30 | 31 | -------------------------------------------------------------------------------- /flutter_movie/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /flutter_movie/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /flutter_movie/ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | def parse_KV_file(file, separator='=') 8 | file_abs_path = File.expand_path(file) 9 | if !File.exists? file_abs_path 10 | return []; 11 | end 12 | pods_ary = [] 13 | skip_line_start_symbols = ["#", "/"] 14 | File.foreach(file_abs_path) { |line| 15 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 16 | plugin = line.split(pattern=separator) 17 | if plugin.length == 2 18 | podname = plugin[0].strip() 19 | path = plugin[1].strip() 20 | podpath = File.expand_path("#{path}", file_abs_path) 21 | pods_ary.push({:name => podname, :path => podpath}); 22 | else 23 | puts "Invalid plugin specification: #{line}" 24 | end 25 | } 26 | return pods_ary 27 | end 28 | 29 | target 'Runner' do 30 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 31 | # referring to absolute paths on developers' machines. 32 | system('rm -rf Pods/.symlinks') 33 | system('mkdir -p Pods/.symlinks/plugins') 34 | 35 | # Flutter Pods 36 | generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig') 37 | if generated_xcode_build_settings.empty? 38 | puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first." 39 | end 40 | generated_xcode_build_settings.map { |p| 41 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR' 42 | symlink = File.join('Pods', '.symlinks', 'flutter') 43 | File.symlink(File.dirname(p[:path]), symlink) 44 | pod 'Flutter', :path => File.join(symlink, File.basename(p[:path])) 45 | end 46 | } 47 | 48 | # Plugin Pods 49 | plugin_pods = parse_KV_file('../.flutter-plugins') 50 | plugin_pods.map { |p| 51 | symlink = File.join('Pods', '.symlinks', 'plugins', p[:name]) 52 | File.symlink(p[:path], symlink) 53 | pod p[:name], :path => File.join(symlink, 'ios') 54 | } 55 | end 56 | 57 | post_install do |installer| 58 | installer.pods_project.targets.each do |target| 59 | target.build_configurations.each do |config| 60 | config.build_settings['ENABLE_BITCODE'] = 'NO' 61 | end 62 | end 63 | end 64 | -------------------------------------------------------------------------------- /flutter_movie/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - url_launcher (0.0.1): 4 | - Flutter 5 | 6 | DEPENDENCIES: 7 | - Flutter (from `Pods/.symlinks/flutter/ios`) 8 | - url_launcher (from `Pods/.symlinks/plugins/url_launcher/ios`) 9 | 10 | EXTERNAL SOURCES: 11 | Flutter: 12 | :path: Pods/.symlinks/flutter/ios 13 | url_launcher: 14 | :path: Pods/.symlinks/plugins/url_launcher/ios 15 | 16 | SPEC CHECKSUMS: 17 | Flutter: 9d0fac939486c9aba2809b7982dfdbb47a7b0296 18 | url_launcher: 92b89c1029a0373879933c21642958c874539095 19 | 20 | PODFILE CHECKSUM: 13dcf421f4da2e937a57e8ba760ed880beae536f 21 | 22 | COCOAPODS: 1.5.0 23 | -------------------------------------------------------------------------------- /flutter_movie/ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 14 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 18 | 9740EEB51CF90195004384FC /* Generated.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB31CF90195004384FC /* Generated.xcconfig */; }; 19 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 20 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 21 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 22 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 23 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 24 | E32B7FA4F1ED9C3CB3C7D83F /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DC5247A09CA56E8E7857A12 /* libPods-Runner.a */; }; 25 | /* End PBXBuildFile section */ 26 | 27 | /* Begin PBXCopyFilesBuildPhase section */ 28 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 29 | isa = PBXCopyFilesBuildPhase; 30 | buildActionMask = 2147483647; 31 | dstPath = ""; 32 | dstSubfolderSpec = 10; 33 | files = ( 34 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 35 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 36 | ); 37 | name = "Embed Frameworks"; 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXCopyFilesBuildPhase section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 44 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 45 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; }; 46 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 47 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 48 | 5DC5247A09CA56E8E7857A12 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 50 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 51 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 52 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 53 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 54 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 55 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 57 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 58 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 59 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 60 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 61 | /* End PBXFileReference section */ 62 | 63 | /* Begin PBXFrameworksBuildPhase section */ 64 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 69 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 70 | E32B7FA4F1ED9C3CB3C7D83F /* libPods-Runner.a in Frameworks */, 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | /* End PBXFrameworksBuildPhase section */ 75 | 76 | /* Begin PBXGroup section */ 77 | 539F0375A6087F470987534C /* Frameworks */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 5DC5247A09CA56E8E7857A12 /* libPods-Runner.a */, 81 | ); 82 | name = Frameworks; 83 | sourceTree = ""; 84 | }; 85 | 9740EEB11CF90186004384FC /* Flutter */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */, 89 | 3B80C3931E831B6300D905FE /* App.framework */, 90 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 91 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 92 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 93 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 94 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 95 | ); 96 | name = Flutter; 97 | sourceTree = ""; 98 | }; 99 | 97C146E51CF9000F007C117D = { 100 | isa = PBXGroup; 101 | children = ( 102 | 9740EEB11CF90186004384FC /* Flutter */, 103 | 97C146F01CF9000F007C117D /* Runner */, 104 | 97C146EF1CF9000F007C117D /* Products */, 105 | F643182D69E10451EC3220FE /* Pods */, 106 | 539F0375A6087F470987534C /* Frameworks */, 107 | ); 108 | sourceTree = ""; 109 | }; 110 | 97C146EF1CF9000F007C117D /* Products */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 97C146EE1CF9000F007C117D /* Runner.app */, 114 | ); 115 | name = Products; 116 | sourceTree = ""; 117 | }; 118 | 97C146F01CF9000F007C117D /* Runner */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 122 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 123 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 124 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 125 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 126 | 97C147021CF9000F007C117D /* Info.plist */, 127 | 97C146F11CF9000F007C117D /* Supporting Files */, 128 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 129 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 130 | ); 131 | path = Runner; 132 | sourceTree = ""; 133 | }; 134 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | 97C146F21CF9000F007C117D /* main.m */, 138 | ); 139 | name = "Supporting Files"; 140 | sourceTree = ""; 141 | }; 142 | F643182D69E10451EC3220FE /* Pods */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | ); 146 | name = Pods; 147 | sourceTree = ""; 148 | }; 149 | /* End PBXGroup section */ 150 | 151 | /* Begin PBXNativeTarget section */ 152 | 97C146ED1CF9000F007C117D /* Runner */ = { 153 | isa = PBXNativeTarget; 154 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 155 | buildPhases = ( 156 | 5284B5CB53078BF149EDAD08 /* [CP] Check Pods Manifest.lock */, 157 | 9740EEB61CF901F6004384FC /* Run Script */, 158 | 97C146EA1CF9000F007C117D /* Sources */, 159 | 97C146EB1CF9000F007C117D /* Frameworks */, 160 | 97C146EC1CF9000F007C117D /* Resources */, 161 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 162 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 163 | 12DDA9F546F8477EF88AF440 /* [CP] Embed Pods Frameworks */, 164 | ); 165 | buildRules = ( 166 | ); 167 | dependencies = ( 168 | ); 169 | name = Runner; 170 | productName = Runner; 171 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 172 | productType = "com.apple.product-type.application"; 173 | }; 174 | /* End PBXNativeTarget section */ 175 | 176 | /* Begin PBXProject section */ 177 | 97C146E61CF9000F007C117D /* Project object */ = { 178 | isa = PBXProject; 179 | attributes = { 180 | LastUpgradeCheck = 0910; 181 | ORGANIZATIONNAME = "The Chromium Authors"; 182 | TargetAttributes = { 183 | 97C146ED1CF9000F007C117D = { 184 | CreatedOnToolsVersion = 7.3.1; 185 | }; 186 | }; 187 | }; 188 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 189 | compatibilityVersion = "Xcode 3.2"; 190 | developmentRegion = English; 191 | hasScannedForEncodings = 0; 192 | knownRegions = ( 193 | en, 194 | Base, 195 | ); 196 | mainGroup = 97C146E51CF9000F007C117D; 197 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 198 | projectDirPath = ""; 199 | projectRoot = ""; 200 | targets = ( 201 | 97C146ED1CF9000F007C117D /* Runner */, 202 | ); 203 | }; 204 | /* End PBXProject section */ 205 | 206 | /* Begin PBXResourcesBuildPhase section */ 207 | 97C146EC1CF9000F007C117D /* Resources */ = { 208 | isa = PBXResourcesBuildPhase; 209 | buildActionMask = 2147483647; 210 | files = ( 211 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 212 | 9740EEB51CF90195004384FC /* Generated.xcconfig in Resources */, 213 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 214 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 215 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 216 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */, 217 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 218 | ); 219 | runOnlyForDeploymentPostprocessing = 0; 220 | }; 221 | /* End PBXResourcesBuildPhase section */ 222 | 223 | /* Begin PBXShellScriptBuildPhase section */ 224 | 12DDA9F546F8477EF88AF440 /* [CP] Embed Pods Frameworks */ = { 225 | isa = PBXShellScriptBuildPhase; 226 | buildActionMask = 2147483647; 227 | files = ( 228 | ); 229 | inputPaths = ( 230 | "${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh", 231 | "${PODS_ROOT}/.symlinks/flutter/ios/Flutter.framework", 232 | ); 233 | name = "[CP] Embed Pods Frameworks"; 234 | outputPaths = ( 235 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework", 236 | ); 237 | runOnlyForDeploymentPostprocessing = 0; 238 | shellPath = /bin/sh; 239 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 240 | showEnvVarsInLog = 0; 241 | }; 242 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 243 | isa = PBXShellScriptBuildPhase; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | ); 247 | inputPaths = ( 248 | ); 249 | name = "Thin Binary"; 250 | outputPaths = ( 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | shellPath = /bin/sh; 254 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 255 | }; 256 | 5284B5CB53078BF149EDAD08 /* [CP] Check Pods Manifest.lock */ = { 257 | isa = PBXShellScriptBuildPhase; 258 | buildActionMask = 2147483647; 259 | files = ( 260 | ); 261 | inputPaths = ( 262 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 263 | "${PODS_ROOT}/Manifest.lock", 264 | ); 265 | name = "[CP] Check Pods Manifest.lock"; 266 | outputPaths = ( 267 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | shellPath = /bin/sh; 271 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 272 | showEnvVarsInLog = 0; 273 | }; 274 | 9740EEB61CF901F6004384FC /* Run Script */ = { 275 | isa = PBXShellScriptBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | ); 279 | inputPaths = ( 280 | ); 281 | name = "Run Script"; 282 | outputPaths = ( 283 | ); 284 | runOnlyForDeploymentPostprocessing = 0; 285 | shellPath = /bin/sh; 286 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 287 | }; 288 | /* End PBXShellScriptBuildPhase section */ 289 | 290 | /* Begin PBXSourcesBuildPhase section */ 291 | 97C146EA1CF9000F007C117D /* Sources */ = { 292 | isa = PBXSourcesBuildPhase; 293 | buildActionMask = 2147483647; 294 | files = ( 295 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 296 | 97C146F31CF9000F007C117D /* main.m in Sources */, 297 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 298 | ); 299 | runOnlyForDeploymentPostprocessing = 0; 300 | }; 301 | /* End PBXSourcesBuildPhase section */ 302 | 303 | /* Begin PBXVariantGroup section */ 304 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 305 | isa = PBXVariantGroup; 306 | children = ( 307 | 97C146FB1CF9000F007C117D /* Base */, 308 | ); 309 | name = Main.storyboard; 310 | sourceTree = ""; 311 | }; 312 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 313 | isa = PBXVariantGroup; 314 | children = ( 315 | 97C147001CF9000F007C117D /* Base */, 316 | ); 317 | name = LaunchScreen.storyboard; 318 | sourceTree = ""; 319 | }; 320 | /* End PBXVariantGroup section */ 321 | 322 | /* Begin XCBuildConfiguration section */ 323 | 97C147031CF9000F007C117D /* Debug */ = { 324 | isa = XCBuildConfiguration; 325 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 326 | buildSettings = { 327 | ALWAYS_SEARCH_USER_PATHS = NO; 328 | CLANG_ANALYZER_NONNULL = YES; 329 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 330 | CLANG_CXX_LIBRARY = "libc++"; 331 | CLANG_ENABLE_MODULES = YES; 332 | CLANG_ENABLE_OBJC_ARC = YES; 333 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 334 | CLANG_WARN_BOOL_CONVERSION = YES; 335 | CLANG_WARN_COMMA = YES; 336 | CLANG_WARN_CONSTANT_CONVERSION = YES; 337 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 338 | CLANG_WARN_EMPTY_BODY = YES; 339 | CLANG_WARN_ENUM_CONVERSION = YES; 340 | CLANG_WARN_INFINITE_RECURSION = YES; 341 | CLANG_WARN_INT_CONVERSION = YES; 342 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 343 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 344 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 345 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 346 | CLANG_WARN_STRICT_PROTOTYPES = YES; 347 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 348 | CLANG_WARN_UNREACHABLE_CODE = YES; 349 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 350 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 351 | COPY_PHASE_STRIP = NO; 352 | DEBUG_INFORMATION_FORMAT = dwarf; 353 | ENABLE_STRICT_OBJC_MSGSEND = YES; 354 | ENABLE_TESTABILITY = YES; 355 | GCC_C_LANGUAGE_STANDARD = gnu99; 356 | GCC_DYNAMIC_NO_PIC = NO; 357 | GCC_NO_COMMON_BLOCKS = YES; 358 | GCC_OPTIMIZATION_LEVEL = 0; 359 | GCC_PREPROCESSOR_DEFINITIONS = ( 360 | "DEBUG=1", 361 | "$(inherited)", 362 | ); 363 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 364 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 365 | GCC_WARN_UNDECLARED_SELECTOR = YES; 366 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 367 | GCC_WARN_UNUSED_FUNCTION = YES; 368 | GCC_WARN_UNUSED_VARIABLE = YES; 369 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 370 | MTL_ENABLE_DEBUG_INFO = YES; 371 | ONLY_ACTIVE_ARCH = YES; 372 | SDKROOT = iphoneos; 373 | TARGETED_DEVICE_FAMILY = "1,2"; 374 | }; 375 | name = Debug; 376 | }; 377 | 97C147041CF9000F007C117D /* Release */ = { 378 | isa = XCBuildConfiguration; 379 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 380 | buildSettings = { 381 | ALWAYS_SEARCH_USER_PATHS = NO; 382 | CLANG_ANALYZER_NONNULL = YES; 383 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 384 | CLANG_CXX_LIBRARY = "libc++"; 385 | CLANG_ENABLE_MODULES = YES; 386 | CLANG_ENABLE_OBJC_ARC = YES; 387 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 388 | CLANG_WARN_BOOL_CONVERSION = YES; 389 | CLANG_WARN_COMMA = YES; 390 | CLANG_WARN_CONSTANT_CONVERSION = YES; 391 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 392 | CLANG_WARN_EMPTY_BODY = YES; 393 | CLANG_WARN_ENUM_CONVERSION = YES; 394 | CLANG_WARN_INFINITE_RECURSION = YES; 395 | CLANG_WARN_INT_CONVERSION = YES; 396 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 397 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 398 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 399 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 400 | CLANG_WARN_STRICT_PROTOTYPES = YES; 401 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 402 | CLANG_WARN_UNREACHABLE_CODE = YES; 403 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 404 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 405 | COPY_PHASE_STRIP = NO; 406 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 407 | ENABLE_NS_ASSERTIONS = NO; 408 | ENABLE_STRICT_OBJC_MSGSEND = YES; 409 | GCC_C_LANGUAGE_STANDARD = gnu99; 410 | GCC_NO_COMMON_BLOCKS = YES; 411 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 412 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 413 | GCC_WARN_UNDECLARED_SELECTOR = YES; 414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 415 | GCC_WARN_UNUSED_FUNCTION = YES; 416 | GCC_WARN_UNUSED_VARIABLE = YES; 417 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 418 | MTL_ENABLE_DEBUG_INFO = NO; 419 | SDKROOT = iphoneos; 420 | TARGETED_DEVICE_FAMILY = "1,2"; 421 | VALIDATE_PRODUCT = YES; 422 | }; 423 | name = Release; 424 | }; 425 | 97C147061CF9000F007C117D /* Debug */ = { 426 | isa = XCBuildConfiguration; 427 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 428 | buildSettings = { 429 | ARCHS = arm64; 430 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 431 | ENABLE_BITCODE = NO; 432 | FRAMEWORK_SEARCH_PATHS = ( 433 | "$(inherited)", 434 | "$(PROJECT_DIR)/Flutter", 435 | ); 436 | INFOPLIST_FILE = Runner/Info.plist; 437 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 438 | LIBRARY_SEARCH_PATHS = ( 439 | "$(inherited)", 440 | "$(PROJECT_DIR)/Flutter", 441 | ); 442 | PRODUCT_BUNDLE_IDENTIFIER = com.dhytodev.flutterMovieApp; 443 | PRODUCT_NAME = "$(TARGET_NAME)"; 444 | }; 445 | name = Debug; 446 | }; 447 | 97C147071CF9000F007C117D /* Release */ = { 448 | isa = XCBuildConfiguration; 449 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 450 | buildSettings = { 451 | ARCHS = arm64; 452 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 453 | ENABLE_BITCODE = NO; 454 | FRAMEWORK_SEARCH_PATHS = ( 455 | "$(inherited)", 456 | "$(PROJECT_DIR)/Flutter", 457 | ); 458 | INFOPLIST_FILE = Runner/Info.plist; 459 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 460 | LIBRARY_SEARCH_PATHS = ( 461 | "$(inherited)", 462 | "$(PROJECT_DIR)/Flutter", 463 | ); 464 | PRODUCT_BUNDLE_IDENTIFIER = com.dhytodev.flutterMovieApp; 465 | PRODUCT_NAME = "$(TARGET_NAME)"; 466 | }; 467 | name = Release; 468 | }; 469 | /* End XCBuildConfiguration section */ 470 | 471 | /* Begin XCConfigurationList section */ 472 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 473 | isa = XCConfigurationList; 474 | buildConfigurations = ( 475 | 97C147031CF9000F007C117D /* Debug */, 476 | 97C147041CF9000F007C117D /* Release */, 477 | ); 478 | defaultConfigurationIsVisible = 0; 479 | defaultConfigurationName = Release; 480 | }; 481 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 482 | isa = XCConfigurationList; 483 | buildConfigurations = ( 484 | 97C147061CF9000F007C117D /* Debug */, 485 | 97C147071CF9000F007C117D /* Release */, 486 | ); 487 | defaultConfigurationIsVisible = 0; 488 | defaultConfigurationName = Release; 489 | }; 490 | /* End XCConfigurationList section */ 491 | }; 492 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 493 | } 494 | -------------------------------------------------------------------------------- /flutter_movie/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /flutter_movie/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /flutter_movie/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 7 | [GeneratedPluginRegistrant registerWithRegistry:self]; 8 | // Override point for customization after application launch. 9 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 10 | } 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /flutter_movie/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 | -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DhytoDev/flutter-movie-app/3c56297173830ca4181222da91f9b2a5ca713623/flutter_movie/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /flutter_movie/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. -------------------------------------------------------------------------------- /flutter_movie/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 | -------------------------------------------------------------------------------- /flutter_movie/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 | -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | flutter_movie_app 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | arm64 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | UIViewControllerBasedStatusBarAppearance 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /flutter_movie/ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /flutter_movie/lib/di/inject.dart: -------------------------------------------------------------------------------- 1 | import 'package:core/core.dart'; 2 | import 'package:flutter_simple_dependency_injection/injector.dart'; 3 | 4 | class Injection { 5 | static Injector injector; 6 | 7 | static void initInjection() { 8 | injector = Injector.getInjector(); 9 | 10 | injector.map((i) => MovieRepoImpl()); 11 | injector.map( 12 | (i) => GetNowPlayingMovies(injector.get())); 13 | injector.map((i) => GetTrailers(injector.get())); 14 | injector.map( 15 | (i) => MovieBloc(injector.get()), 16 | isSingleton: false); 17 | injector.map((i) => TrailerBloc(injector.get()), 18 | isSingleton: false); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /flutter_movie/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_movie_app/di/inject.dart'; 3 | import 'package:flutter_movie_app/ui/pages/home/home_page.dart'; 4 | 5 | void main() { 6 | Injection.initInjection(); 7 | 8 | runApp(MyApp()); 9 | } 10 | 11 | class MyApp extends StatelessWidget { 12 | // This widget is the root of your application. 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | return MaterialApp( 17 | debugShowCheckedModeBanner: false, 18 | title: 'Flutter Demo', 19 | theme: new ThemeData( 20 | primaryColor: Colors.grey[900], accentColor: Colors.orangeAccent), 21 | home: HomePage(), 22 | ); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /flutter_movie/lib/ui/base/base_bloc_scaffold_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:core/core.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_movie_app/ui/base/base_bloc_widget.dart'; 4 | 5 | class BaseBlocScaffoldWidget extends BaseBlocWidget { 6 | final AppBar appBar; 7 | 8 | BaseBlocScaffoldWidget({BaseBloc bloc, Widget body, this.appBar}) 9 | : super(bloc, body); 10 | 11 | @override 12 | Widget body(BuildContext context) { 13 | return SafeArea( 14 | child: Scaffold( 15 | backgroundColor: Theme.of(context).primaryColor, 16 | appBar: appBar ?? null, 17 | body: super.body(context), 18 | ), 19 | ); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /flutter_movie/lib/ui/base/base_bloc_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:core/core.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_movie_app/ui/base/base_widget.dart'; 4 | 5 | class BaseBlocWidget extends BaseWidget { 6 | final Widget _body; 7 | 8 | BaseBlocWidget(BaseBloc baseBloc, this._body) : super(baseBloc); 9 | 10 | @override 11 | Widget body(BuildContext context) { 12 | return _body; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /flutter_movie/lib/ui/base/base_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:core/core.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | abstract class BaseWidget extends StatefulWidget { 5 | final BaseBloc baseBloc; 6 | 7 | const BaseWidget(this.baseBloc, {Key key}) : super(key: key); 8 | 9 | Widget body(BuildContext context); 10 | 11 | @override 12 | _BaseWidgetState createState() => _BaseWidgetState(); 13 | } 14 | 15 | class _BaseWidgetState extends State { 16 | void _showErrorDialog(BuildContext context, String errorText) { 17 | showDialog( 18 | context: context, 19 | builder: (BuildContext context) { 20 | return AlertDialog( 21 | title: new Text('Error Title'), 22 | content: new Text(errorText), 23 | actions: [ 24 | FlatButton( 25 | onPressed: () { 26 | Navigator.of(context).pop(); 27 | }, 28 | child: Text('OK'), 29 | ), 30 | ], 31 | ); 32 | }); 33 | } 34 | 35 | @override 36 | void initState() { 37 | super.initState(); 38 | widget.baseBloc.errorStream.listen((error) { 39 | if (error.isNotEmpty) _showErrorDialog(context, error); 40 | }); 41 | } 42 | 43 | @override 44 | void dispose() { 45 | widget.baseBloc.dispose(); 46 | super.dispose(); 47 | } 48 | 49 | @override 50 | Widget build(BuildContext context) { 51 | return widget.body(context); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /flutter_movie/lib/ui/common/collapsing_toolbar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_movie_app/ui/common//my_text_styles.dart'; 3 | 4 | class CollapsingToolbar extends StatelessWidget { 5 | final double _appBarHeight = 256.0; 6 | final String title, backdrop; 7 | 8 | CollapsingToolbar({this.title, this.backdrop}); 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | return SliverAppBar( 13 | expandedHeight: _appBarHeight, 14 | pinned: true, 15 | floating: false, 16 | title: text(title, color: Colors.white, size: 18.0), 17 | actions: [ 18 | IconButton( 19 | icon: Icon(Icons.share), 20 | onPressed: () {}, 21 | ) 22 | ], 23 | flexibleSpace: FlexibleSpaceBar( 24 | background: Stack( 25 | fit: StackFit.expand, 26 | children: [ 27 | new Hero( 28 | tag: title, 29 | child: Image.network( 30 | backdrop, 31 | fit: BoxFit.cover, 32 | height: _appBarHeight, 33 | ), 34 | ), 35 | const DecoratedBox( 36 | decoration: const BoxDecoration( 37 | gradient: const LinearGradient( 38 | begin: const Alignment(0.0, -1.0), 39 | end: const Alignment(0.0, -0.4), 40 | colors: const [ 41 | const Color(0x60000000), 42 | const Color(0x00000000) 43 | ], 44 | ), 45 | ), 46 | ), 47 | ], 48 | ), 49 | ), 50 | ); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /flutter_movie/lib/ui/common/custom_shape_clipper.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CustomShapeClipper extends CustomClipper { 4 | @override 5 | Path getClip(Size size) { 6 | final Path path = Path(); 7 | path.lineTo(0, size.height - 30); 8 | 9 | final firstControlPoint = Offset(size.width / 4, size.height); 10 | final firstPoint = Offset(size.width / 2, size.height); 11 | path.quadraticBezierTo(firstControlPoint.dx, firstControlPoint.dy, 12 | firstPoint.dx, firstPoint.dy); 13 | 14 | var secondControlPoint = Offset(size.width - (size.width / 4), size.height); 15 | var secondPoint = Offset(size.width, size.height - 30); 16 | path.quadraticBezierTo(secondControlPoint.dx, secondControlPoint.dy, 17 | secondPoint.dx, secondPoint.dy); 18 | 19 | path.lineTo(size.width, 0); 20 | 21 | path.close(); 22 | 23 | return path; 24 | } 25 | 26 | @override 27 | bool shouldReclip(CustomClipper oldClipper) => true; 28 | } 29 | -------------------------------------------------------------------------------- /flutter_movie/lib/ui/common/my_text_styles.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | //abstract class MyTextSyle { 4 | text(String text, 5 | {Color color = Colors.white70, 6 | num size = 14, 7 | EdgeInsetsGeometry padding = EdgeInsets.zero, 8 | bool isBold = false, 9 | TextAlign textAlign = TextAlign.left}) => 10 | Padding( 11 | padding: padding, 12 | child: Text( 13 | text, 14 | textAlign: textAlign, 15 | style: TextStyle( 16 | color: color, 17 | fontSize: size.toDouble(), 18 | fontWeight: isBold ? FontWeight.bold : FontWeight.normal, 19 | fontFamily: 'Merriweather'), 20 | ), 21 | ); 22 | //} 23 | -------------------------------------------------------------------------------- /flutter_movie/lib/ui/common/trailers.dart: -------------------------------------------------------------------------------- 1 | import 'package:core/core.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_movie_app/di/inject.dart'; 4 | import 'package:flutter_movie_app/ui/common//my_text_styles.dart'; 5 | import 'package:url_launcher/url_launcher.dart'; 6 | 7 | class Trailers extends StatelessWidget { 8 | Trailers(this.id); 9 | 10 | final int id; 11 | 12 | void _launchURL(String key) async { 13 | final url = 'https://www.youtube.com/watch?v=$key'; 14 | if (await canLaunch(url)) { 15 | await launch(url); 16 | } else { 17 | throw 'Could not launch $url'; 18 | } 19 | } 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | final TrailerBloc bloc = Injection.injector.get(); 24 | 25 | bloc.movieId.add(id); 26 | 27 | _createThumbnail(Trailer trailer) => Container( 28 | padding: const EdgeInsets.only(right: 16.0), 29 | child: Material( 30 | elevation: 5.0, 31 | child: InkWell( 32 | onTap: () { 33 | _launchURL(trailer.key); 34 | }, 35 | child: Stack( 36 | alignment: Alignment.center, 37 | children: [ 38 | Image.network(getImageVideoUrl(trailer.key), 39 | fit: BoxFit.fill, width: 200.0, height: 150.0), 40 | Center( 41 | child: Icon(Icons.play_circle_outline, 42 | size: 50.0, color: Colors.grey[300]), 43 | ) 44 | ], 45 | ), 46 | ), 47 | ), 48 | ); 49 | 50 | return Container( 51 | padding: const EdgeInsets.only(left: 16.0, right: 16.0, bottom: 16.0), 52 | child: Column( 53 | crossAxisAlignment: CrossAxisAlignment.start, 54 | children: [ 55 | text('Trailers', size: 18.0, isBold: true, color: Colors.white), 56 | Container( 57 | constraints: const BoxConstraints(maxHeight: 150.0), 58 | margin: const EdgeInsets.only(top: 16.0, bottom: 16.0), 59 | child: StreamBuilder( 60 | stream: bloc.getTrailers(), 61 | builder: (BuildContext context, 62 | AsyncSnapshot> snapshot) { 63 | if (!snapshot.hasData) return Container(); 64 | 65 | var trailers = snapshot.data; 66 | 67 | return ListView( 68 | shrinkWrap: true, 69 | scrollDirection: Axis.horizontal, 70 | children: trailers 71 | .map((trailer) => _createThumbnail(trailer)) 72 | .toList()); 73 | }, 74 | )) 75 | ], 76 | ), 77 | ); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /flutter_movie/lib/ui/pages/detail_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:core/core.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_movie_app/ui/common//collapsing_toolbar.dart'; 4 | import 'package:flutter_movie_app/ui/common//my_text_styles.dart'; 5 | import 'package:flutter_movie_app/ui/common//trailers.dart'; 6 | import 'package:meta/meta.dart'; 7 | 8 | class DetailPage extends StatelessWidget { 9 | final Movie movie; 10 | 11 | DetailPage({Key key, @required this.movie}) : super(key: key); 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | final _poster = Material( 16 | shadowColor: Colors.grey[500], 17 | elevation: 15.0, 18 | child: InkWell( 19 | child: Card( 20 | elevation: 0.0, 21 | color: Colors.white, 22 | child: Image.network('$POSTER_PATH_URL${movie.posterPath}', 23 | fit: BoxFit.cover, width: 100.0, height: 150.0), 24 | ), 25 | ), 26 | ); 27 | 28 | final _description = Column( 29 | crossAxisAlignment: CrossAxisAlignment.start, 30 | children: [ 31 | text(movie.title.isEmpty ? 'Title' : '${movie.title}', 32 | size: 18.0, 33 | padding: EdgeInsets.only(left: 16.0, top: 16.0), 34 | color: Colors.white), 35 | Padding( 36 | padding: EdgeInsets.only(left: 16.0, top: 16.0), 37 | child: Row( 38 | children: [ 39 | Flexible( 40 | child: Icon(Icons.calendar_today, 41 | color: Theme.of(context).accentColor, size: 30.0), 42 | flex: 1, 43 | ), 44 | Flexible( 45 | child: text('${movie.releaseDate}', 46 | isBold: false, 47 | size: 14.0, 48 | padding: EdgeInsets.only(left: 8.0)), 49 | flex: 4, 50 | ) 51 | ], 52 | ), 53 | ), 54 | Padding( 55 | padding: EdgeInsets.only(left: 16.0, top: 8.0), 56 | child: Row( 57 | children: [ 58 | Flexible( 59 | child: Icon(Icons.stars, 60 | color: Theme.of(context).accentColor, size: 30.0), 61 | flex: 1, 62 | ), 63 | Flexible( 64 | child: text('${movie.voteAverage}/10 (${movie.voteCount})', 65 | isBold: false, 66 | size: 14.0, 67 | padding: EdgeInsets.only(left: 8.0)), 68 | flex: 4, 69 | ) 70 | ], 71 | ), 72 | ) 73 | ], 74 | ); 75 | 76 | final _topContent = Container( 77 | padding: const EdgeInsets.all(16.0), 78 | child: Row( 79 | crossAxisAlignment: CrossAxisAlignment.center, 80 | children: [ 81 | Flexible(flex: 2, child: _poster), 82 | Flexible(flex: 3, child: _description), 83 | ], 84 | ), 85 | ); 86 | 87 | final _bottomContent = Container( 88 | padding: const EdgeInsets.only(left: 16.0, right: 16.0, bottom: 16.0), 89 | child: Column( 90 | crossAxisAlignment: CrossAxisAlignment.start, 91 | children: [ 92 | text('Overview', size: 18.0, isBold: true, color: Colors.white), 93 | text('${movie.overview}', 94 | size: 14.0, 95 | padding: const EdgeInsets.only(top: 8.0), 96 | isBold: false, 97 | textAlign: TextAlign.justify), 98 | ], 99 | ), 100 | ); 101 | 102 | return Scaffold( 103 | backgroundColor: Theme.of(context).primaryColor, 104 | body: NestedScrollView( 105 | headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) { 106 | return [ 107 | CollapsingToolbar( 108 | title: '${movie.title}', 109 | backdrop: '$BACKDROP_PATH_URL${movie.backdropPath}'), 110 | ]; 111 | }, 112 | body: ListView( 113 | children: [_topContent, _bottomContent, Trailers(movie.id)], 114 | ), 115 | ), 116 | ); 117 | } 118 | } 119 | -------------------------------------------------------------------------------- /flutter_movie/lib/ui/pages/home/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:core/core.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_movie_app/di/inject.dart'; 4 | import 'package:flutter_movie_app/ui/base/base_bloc_scaffold_widget.dart'; 5 | import 'package:flutter_movie_app/ui/common//custom_shape_clipper.dart'; 6 | import 'package:flutter_movie_app/ui/pages/home/home_page_bottom.dart'; 7 | 8 | class HomePage extends StatelessWidget { 9 | @override 10 | Widget build(BuildContext context) { 11 | final MovieBloc bloc = Injection.injector.get(); 12 | 13 | return BaseBlocScaffoldWidget( 14 | bloc: bloc, 15 | body: SingleChildScrollView( 16 | scrollDirection: Axis.vertical, 17 | child: Column( 18 | children: [ 19 | ClipPath( 20 | clipper: CustomShapeClipper(), 21 | child: Container( 22 | height: 300, 23 | color: Colors.yellow, 24 | ), 25 | ), 26 | HomePageBottom(bloc: bloc), 27 | ], 28 | ), 29 | )); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /flutter_movie/lib/ui/pages/home/home_page_bottom.dart: -------------------------------------------------------------------------------- 1 | import 'package:core/core.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_movie_app/ui/pages/detail_page.dart'; 4 | 5 | class HomePageBottom extends StatelessWidget { 6 | final MovieBloc bloc; 7 | 8 | const HomePageBottom({Key key, this.bloc}) : super(key: key); 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | _createTile(Movie movie) => Material( 13 | shadowColor: Colors.grey[500], 14 | elevation: 15.0, 15 | borderRadius: BorderRadius.circular(8), 16 | child: InkWell( 17 | onTap: () { 18 | Navigator.push( 19 | context, 20 | MaterialPageRoute( 21 | builder: (context) => DetailPage(movie: movie), 22 | )); 23 | }, 24 | child: Card( 25 | elevation: 0.0, 26 | color: Colors.white, 27 | child: Column( 28 | children: [ 29 | Image.network( 30 | '$POSTER_PATH_URL${movie.posterPath}', 31 | fit: BoxFit.cover, 32 | scale: 1.5, 33 | ), 34 | Expanded( 35 | child: Container( 36 | margin: const EdgeInsets.only(left: 4.0, right: 4.0), 37 | child: Center( 38 | child: Text( 39 | movie.title, 40 | softWrap: false, 41 | style: TextStyle( 42 | fontSize: 12.0, fontFamily: 'Merriweather'), 43 | textAlign: TextAlign.center, 44 | ), 45 | ), 46 | ), 47 | ) 48 | ], 49 | ), 50 | ), 51 | ), 52 | ); 53 | 54 | return Column( 55 | children: [ 56 | Padding( 57 | padding: const EdgeInsets.all(16.0), 58 | child: Row( 59 | mainAxisSize: MainAxisSize.max, 60 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 61 | children: [ 62 | Text( 63 | 'Now Playing', 64 | style: TextStyle(color: Colors.white), 65 | ), 66 | Spacer(), 67 | Text('VIEW ALL', style: TextStyle(color: Colors.white)), 68 | ], 69 | ), 70 | ), 71 | Container( 72 | constraints: BoxConstraints(maxHeight: 250), 73 | padding: const EdgeInsets.all(16.0), 74 | child: StreamBuilder( 75 | stream: bloc.getMovies(), 76 | builder: 77 | (BuildContext context, AsyncSnapshot> snapshot) { 78 | if (!snapshot.hasData || snapshot.hasError) 79 | return CircularProgressIndicator(); 80 | 81 | List movies = snapshot.data; 82 | 83 | print('size : ${movies.length}'); 84 | 85 | return ListView.builder( 86 | scrollDirection: Axis.horizontal, 87 | itemCount: movies.length, 88 | itemBuilder: (context, index) { 89 | return Padding( 90 | padding: const EdgeInsets.only(right: 8), 91 | child: _createTile(movies[index]), 92 | ); 93 | }); 94 | }, 95 | ), 96 | ), 97 | ], 98 | ); 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /flutter_movie/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://www.dartlang.org/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.1.0" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.0.4" 18 | charcode: 19 | dependency: transitive 20 | description: 21 | name: charcode 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.1.2" 25 | collection: 26 | dependency: transitive 27 | description: 28 | name: collection 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.14.11" 32 | cookie_jar: 33 | dependency: transitive 34 | description: 35 | name: cookie_jar 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.0.0" 39 | core: 40 | dependency: "direct main" 41 | description: 42 | path: "../core" 43 | relative: true 44 | source: path 45 | version: "0.0.1" 46 | cupertino_icons: 47 | dependency: "direct main" 48 | description: 49 | name: cupertino_icons 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "0.1.2" 53 | dio: 54 | dependency: transitive 55 | description: 56 | name: dio 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.3" 60 | flutter: 61 | dependency: "direct main" 62 | description: flutter 63 | source: sdk 64 | version: "0.0.0" 65 | flutter_simple_dependency_injection: 66 | dependency: "direct main" 67 | description: 68 | name: flutter_simple_dependency_injection 69 | url: "https://pub.dartlang.org" 70 | source: hosted 71 | version: "1.0.1" 72 | flutter_test: 73 | dependency: "direct dev" 74 | description: flutter 75 | source: sdk 76 | version: "0.0.0" 77 | matcher: 78 | dependency: transitive 79 | description: 80 | name: matcher 81 | url: "https://pub.dartlang.org" 82 | source: hosted 83 | version: "0.12.5" 84 | meta: 85 | dependency: transitive 86 | description: 87 | name: meta 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "1.1.6" 91 | path: 92 | dependency: transitive 93 | description: 94 | name: path 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "1.6.2" 98 | pedantic: 99 | dependency: transitive 100 | description: 101 | name: pedantic 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "1.5.0" 105 | quiver: 106 | dependency: transitive 107 | description: 108 | name: quiver 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "2.0.2" 112 | rxdart: 113 | dependency: "direct main" 114 | description: 115 | name: rxdart 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "0.22.0" 119 | sky_engine: 120 | dependency: transitive 121 | description: flutter 122 | source: sdk 123 | version: "0.0.99" 124 | source_span: 125 | dependency: transitive 126 | description: 127 | name: source_span 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "1.5.5" 131 | stack_trace: 132 | dependency: transitive 133 | description: 134 | name: stack_trace 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "1.9.3" 138 | stream_channel: 139 | dependency: transitive 140 | description: 141 | name: stream_channel 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "2.0.0" 145 | string_scanner: 146 | dependency: transitive 147 | description: 148 | name: string_scanner 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "1.0.4" 152 | term_glyph: 153 | dependency: transitive 154 | description: 155 | name: term_glyph 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "1.1.0" 159 | test_api: 160 | dependency: transitive 161 | description: 162 | name: test_api 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "0.2.4" 166 | typed_data: 167 | dependency: transitive 168 | description: 169 | name: typed_data 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "1.1.6" 173 | url_launcher: 174 | dependency: "direct main" 175 | description: 176 | name: url_launcher 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "3.0.3" 180 | vector_math: 181 | dependency: transitive 182 | description: 183 | name: vector_math 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "2.0.8" 187 | sdks: 188 | dart: ">=2.2.0 <3.0.0" 189 | flutter: ">=0.1.4 <2.0.0" 190 | -------------------------------------------------------------------------------- /flutter_movie/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_movie_app 2 | description: A new Flutter application. 3 | 4 | dependencies: 5 | flutter: 6 | sdk: flutter 7 | 8 | cupertino_icons: ^0.1.2 9 | url_launcher: ^3.0.0 10 | rxdart: 11 | flutter_simple_dependency_injection: 12 | 13 | core: 14 | path: ../core 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | 20 | flutter: 21 | uses-material-design: true 22 | fonts: 23 | - family: Merriweather 24 | fonts: 25 | - asset: fonts/Merriweather-Regular.ttf 26 | - asset: fonts/Merriweather-Bold.ttf 27 | - asset: fonts/Merriweather-Italic.ttf 28 | style : italic 29 | -------------------------------------------------------------------------------- /flutter_movie/test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // To perform an interaction with a widget in your test, use the WidgetTester utility that Flutter 3 | // provides. For example, you can send tap and scroll gestures. You can also use WidgetTester to 4 | // find child widgets in the widget tree, read text, and verify that the values of widget properties 5 | // are correct. 6 | 7 | import 'package:flutter/material.dart'; 8 | import 'package:flutter_test/flutter_test.dart'; 9 | 10 | import 'package:flutter_movie_app/main.dart'; 11 | 12 | void main() { 13 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 14 | // Build our app and trigger a frame. 15 | await tester.pumpWidget(new MyApp()); 16 | 17 | // Verify that our counter starts at 0. 18 | expect(find.text('0'), findsOneWidget); 19 | expect(find.text('1'), findsNothing); 20 | 21 | // Tap the '+' icon and trigger a frame. 22 | await tester.tap(find.byIcon(Icons.add)); 23 | await tester.pump(); 24 | 25 | // Verify that our counter has incremented. 26 | expect(find.text('0'), findsNothing); 27 | expect(find.text('1'), findsOneWidget); 28 | }); 29 | } 30 | -------------------------------------------------------------------------------- /flutter_web_movie/.gitignore: -------------------------------------------------------------------------------- 1 | # Files and directories created by pub 2 | .dart_tool/ 3 | .packages 4 | # Remove the following pattern if you wish to check in your lock file 5 | pubspec.lock 6 | 7 | # Conventional directory for build outputs 8 | build/ 9 | 10 | # Directory created by dartdoc 11 | doc/api/ 12 | 13 | .firebase/ 14 | 15 | firebase.json 16 | 17 | .firebaserc 18 | 19 | firebase-debug.log 20 | 21 | y/ 22 | -------------------------------------------------------------------------------- /flutter_web_movie/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # Defines a default set of lint rules enforced for 2 | # projects at Google. For details and rationale, 3 | # see https://github.com/dart-lang/pedantic#enabled-lints. 4 | include: package:pedantic/analysis_options.yaml 5 | 6 | # For lint rules and documentation, see http://dart-lang.github.io/linter/lints. 7 | # Uncomment to specify additional rules. 8 | # linter: 9 | # rules: 10 | # - camel_case_types 11 | 12 | analyzer: 13 | exclude: [build/**] 14 | -------------------------------------------------------------------------------- /flutter_web_movie/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java: -------------------------------------------------------------------------------- 1 | package io.flutter.plugins; 2 | 3 | import io.flutter.plugin.common.PluginRegistry; 4 | 5 | /** 6 | * Generated file. Do not edit. 7 | */ 8 | public final class GeneratedPluginRegistrant { 9 | public static void registerWith(PluginRegistry registry) { 10 | if (alreadyRegisteredWith(registry)) { 11 | return; 12 | } 13 | } 14 | 15 | private static boolean alreadyRegisteredWith(PluginRegistry registry) { 16 | final String key = GeneratedPluginRegistrant.class.getCanonicalName(); 17 | if (registry.hasPlugin(key)) { 18 | return true; 19 | } 20 | registry.registrarFor(key); 21 | return false; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /flutter_web_movie/android/local.properties: -------------------------------------------------------------------------------- 1 | sdk.dir=/Users/izadalab/Documents/playground/android/sdk 2 | flutter.sdk=/Users/izadalab/Documents/playground/flutter/flutter -------------------------------------------------------------------------------- /flutter_web_movie/flutter_web_movie.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /flutter_web_movie/ios/Flutter/Generated.xcconfig: -------------------------------------------------------------------------------- 1 | // This is a generated file; do not edit or check into version control. 2 | FLUTTER_ROOT=/Users/izadalab/Documents/playground/flutter/flutter 3 | FLUTTER_APPLICATION_PATH=/Users/izadalab/Documents/playground/flutter/workspace/playground/flutter_movie_app/flutter_web_movie 4 | FLUTTER_TARGET=lib/main.dart 5 | FLUTTER_BUILD_DIR=build 6 | SYMROOT=${SOURCE_ROOT}/../build/ios 7 | FLUTTER_FRAMEWORK_DIR=/Users/izadalab/Documents/playground/flutter/flutter/bin/cache/artifacts/engine/ios 8 | -------------------------------------------------------------------------------- /flutter_web_movie/ios/Runner/GeneratedPluginRegistrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | #ifndef GeneratedPluginRegistrant_h 6 | #define GeneratedPluginRegistrant_h 7 | 8 | #import 9 | 10 | @interface GeneratedPluginRegistrant : NSObject 11 | + (void)registerWithRegistry:(NSObject*)registry; 12 | @end 13 | 14 | #endif /* GeneratedPluginRegistrant_h */ 15 | -------------------------------------------------------------------------------- /flutter_web_movie/ios/Runner/GeneratedPluginRegistrant.m: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | #import "GeneratedPluginRegistrant.h" 6 | 7 | @implementation GeneratedPluginRegistrant 8 | 9 | + (void)registerWithRegistry:(NSObject*)registry { 10 | } 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /flutter_web_movie/lib/di/inject.dart: -------------------------------------------------------------------------------- 1 | import 'package:core/core.dart'; 2 | import 'package:flutter_simple_dependency_injection/injector.dart'; 3 | 4 | class Injection { 5 | static Injector injector; 6 | 7 | static void initInjection() { 8 | injector = Injector.getInjector(); 9 | 10 | injector.map((i) => MovieRepoImpl()); 11 | injector.map( 12 | (i) => GetNowPlayingMovies(injector.get())); 13 | injector.map((i) => GetTrailers(injector.get())); 14 | injector.map( 15 | (i) => MovieBloc(injector.get()), 16 | isSingleton: false); 17 | injector.map((i) => TrailerBloc(injector.get()), 18 | isSingleton: false); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /flutter_web_movie/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:core/core.dart'; 2 | import 'package:flutter_web/material.dart'; 3 | import 'package:flutter_web_movie/di/inject.dart'; 4 | 5 | void main() { 6 | Injection.initInjection(); 7 | runApp(MyApp()); 8 | } 9 | 10 | class MyApp extends StatelessWidget { 11 | @override 12 | Widget build(BuildContext context) { 13 | return MaterialApp( 14 | title: 'Movie App', 15 | debugShowCheckedModeBanner: false, 16 | theme: ThemeData( 17 | primarySwatch: Colors.blue, 18 | ), 19 | home: MyHomePage(title: 'Movie App'), 20 | ); 21 | } 22 | } 23 | 24 | class MyHomePage extends StatelessWidget { 25 | MyHomePage({Key key, this.title}) : super(key: key); 26 | 27 | final String title; 28 | 29 | @override 30 | Widget build(BuildContext context) { 31 | final double width = MediaQuery.of(context).size.width; 32 | 33 | final MovieBloc bloc = Injection.injector.get(); 34 | 35 | return Scaffold( 36 | appBar: AppBar( 37 | title: Text(title), 38 | ), 39 | body: StreamBuilder( 40 | stream: bloc.errorMessage(), 41 | builder: (BuildContext context, AsyncSnapshot snapshot) { 42 | if (!snapshot.hasData) { 43 | return width >= 600 44 | ? MovieTile( 45 | bloc: bloc, 46 | count: 4, 47 | width: width, 48 | ) 49 | : MovieTile( 50 | bloc: bloc, 51 | count: 2, 52 | width: width, 53 | ); 54 | } 55 | 56 | return Text('Error : ${snapshot.data}'); 57 | }, 58 | ), 59 | ); 60 | } 61 | } 62 | 63 | class MovieTile extends StatelessWidget { 64 | const MovieTile({ 65 | Key key, 66 | @required this.bloc, 67 | @required this.count, 68 | @required this.width, 69 | }) : super(key: key); 70 | 71 | final MovieBloc bloc; 72 | final int count; 73 | final double width; 74 | 75 | @override 76 | Widget build(BuildContext context) { 77 | return StreamBuilder( 78 | stream: bloc.getMovies(), 79 | builder: (BuildContext context, AsyncSnapshot> snapshot) { 80 | if (!snapshot.hasData) { 81 | return Center(child: CircularProgressIndicator()); 82 | } 83 | 84 | return Container( 85 | padding: const EdgeInsets.all(16), 86 | child: GridView.count( 87 | crossAxisCount: count, 88 | crossAxisSpacing: 16, 89 | mainAxisSpacing: 16, 90 | childAspectRatio: 2 / 3.5, 91 | children: snapshot.data 92 | .map((movie) => _createTile(movie, context, width)) 93 | .toList(), 94 | ), 95 | ); 96 | }, 97 | ); 98 | } 99 | 100 | Widget _createTile(Movie movie, BuildContext context, double width) => 101 | Material( 102 | shadowColor: Colors.grey[500], 103 | elevation: 15.0, 104 | borderRadius: BorderRadius.circular(8), 105 | child: Card( 106 | elevation: 0.0, 107 | color: Colors.white, 108 | child: Column( 109 | crossAxisAlignment: CrossAxisAlignment.center, 110 | mainAxisSize: MainAxisSize.max, 111 | children: [ 112 | Image.network( 113 | width >= 1000 114 | ? '$POSTER_PATH_URL/w500${movie.posterPath}' 115 | : '$POSTER_PATH_URL/w185${movie.posterPath}', 116 | fit: BoxFit.contain, 117 | width: MediaQuery.of(context).size.width, 118 | ), 119 | Expanded( 120 | child: Container( 121 | margin: const EdgeInsets.only(left: 4.0, right: 4.0), 122 | child: Center( 123 | child: Text( 124 | movie.title, 125 | softWrap: true, 126 | style: TextStyle(fontSize: 12.0), 127 | textAlign: TextAlign.center, 128 | ), 129 | ), 130 | ), 131 | ) 132 | ], 133 | ), 134 | ), 135 | ); 136 | } 137 | -------------------------------------------------------------------------------- /flutter_web_movie/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_web_movie 2 | description: An app built using Flutter for web 3 | 4 | environment: 5 | # You must be using Flutter >=1.5.0 or Dart >=2.3.0 6 | sdk: '>=2.2.0 <3.0.0' 7 | 8 | dependencies: 9 | flutter_web: any 10 | flutter_web_ui: any 11 | flutter_simple_dependency_injection: 12 | core: 13 | path: ../core 14 | 15 | dev_dependencies: 16 | build_runner: any 17 | build_web_compilers: any 18 | pedantic: ^1.0.0 19 | 20 | dependency_overrides: 21 | flutter_web: 22 | git: 23 | url: https://github.com/flutter/flutter_web 24 | path: packages/flutter_web 25 | flutter_web_ui: 26 | git: 27 | url: https://github.com/flutter/flutter_web 28 | path: packages/flutter_web_ui 29 | -------------------------------------------------------------------------------- /flutter_web_movie/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /flutter_web_movie/web/main.dart: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Chromium Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | import 'package:flutter_web_ui/ui.dart' as ui; 5 | import 'package:flutter_web_movie/main.dart' as app; 6 | 7 | main() async { 8 | await ui.webOnlyInitializePlatform(); 9 | app.main(); 10 | } 11 | --------------------------------------------------------------------------------