diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png old mode 100755 new mode 100644 index db77bb4..f1facb3 Binary files a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-ldpi/ic_launcher.png b/android/app/src/main/res/mipmap-ldpi/ic_launcher.png new file mode 100644 index 0000000..7256fde Binary files /dev/null and b/android/app/src/main/res/mipmap-ldpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png old mode 100755 new mode 100644 index 17987b7..f60cd80 Binary files a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png old mode 100755 new mode 100644 index 09d4391..6cf485d Binary files a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png old mode 100755 new mode 100644 index d5f1c8d..10adbad Binary files a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png old mode 100755 new mode 100644 index 4d6372e..207841b Binary files a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/playstore-icon.png b/android/app/src/main/res/playstore-icon.png new file mode 100644 index 0000000..218505e Binary files /dev/null and b/android/app/src/main/res/playstore-icon.png differ diff --git a/lib/widgets/search_page.dart b/lib/widgets/search_page.dart index 7da330f..ef2ca04 100644 --- a/lib/widgets/search_page.dart +++ b/lib/widgets/search_page.dart @@ -8,6 +8,7 @@ import 'package:cached_network_image/cached_network_image.dart'; import 'movie_page.dart'; import 'package:tracker/utils/database.dart'; import 'package:tracker/utils/data_function.dart'; +import '../utils/fetch_data.dart'; class SearchBarView extends StatefulWidget { const SearchBarView({super.key}); @@ -137,8 +138,25 @@ class MovieListCard extends StatelessWidget { SingleMovie movie; MovieListCard({super.key, required this.movie}); + Future createTables(SingleMovie movie) async { + final media = MyMedia( + tmdbId: movie.tmdbId, + mediaType: "movie", + watchStatus: "unwatched", + watchTimes: 0, + myRating: 0.0, + myReview: '', + ); + + await ProjectDatabase().SI_add(movie); + await ProjectDatabase().MM_add(media); + await Add_country_runtime_genre(movie); + await addSearchDate(movie); + } + Future addSearchDate(SingleMovie movie) async { DateTime date = DateTime.now(); + print(date); String query = "update myTable set searchDate='${date.toString()}' where tmdbId=${movie.tmdbId}"; ProjectDatabase().sudoQuery(query);