From 03b1e04f776b162d04ef3ac99ea08e241ed8ed2c Mon Sep 17 00:00:00 2001 From: devrnt Date: Sat, 22 Sep 2018 17:43:28 +0200 Subject: [PATCH] Add subtitles to movie details Add subtitle model Add service to fetch the subtitles crawled from the DOM Known issue: #15 --- android/app/src/main/AndroidManifest.xml | 1 + android/build.gradle | 9 ++ assets/images/flag_placeholder.jpg | Bin 0 -> 3051 bytes lib/models/subtitle.dart | 54 ++++++++ lib/screens/home_screen.dart | 4 +- lib/screens/movie_details_screen.dart | 167 ++++++++++++++++++++++- lib/services/storage_service.dart | 6 +- lib/services/subtitle_service.dart | 95 +++++++++++++ pubspec.lock | 15 +- pubspec.yaml | 5 +- 10 files changed, 345 insertions(+), 11 deletions(-) create mode 100644 assets/images/flag_placeholder.jpg create mode 100644 lib/models/subtitle.dart create mode 100644 lib/services/subtitle_service.dart diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 1d9920b..76d5118 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -6,6 +6,7 @@ to allow setting breakpoints, to provide hot reload, etc. --> +