diff --git a/ui/lib/main.dart b/ui/lib/main.dart index a0a7818..ec192d8 100644 --- a/ui/lib/main.dart +++ b/ui/lib/main.dart @@ -36,7 +36,7 @@ class MyApp extends StatelessWidget { // the App.build method, and use it to set our appbar title. title: Row( children: [ - const Text("Polaris 追剧"), + const Text("Polaris"), const SizedBox( width: 100, ), @@ -129,7 +129,7 @@ class MyApp extends StatelessWidget { return ProviderScope( child: MaterialApp.router( - title: 'Polaris', + title: 'Polaris 电影电视剧追踪', theme: ThemeData( // Define the default TextTheme. Use this to specify the default // text styling for headlines, titles, bodies of text, and more. diff --git a/ui/lib/search.dart b/ui/lib/search.dart index af4234a..8b04861 100644 --- a/ui/lib/search.dart +++ b/ui/lib/search.dart @@ -44,7 +44,7 @@ class _SearchPageState extends ConsumerState { width: 150, height: 200, child: Image.network( - APIs.tmdbImgBaseUrl + item.posterPath!, + "${APIs.tmdbImgBaseUrl}${item.posterPath}", fit: BoxFit.contain, ), ), @@ -53,13 +53,20 @@ class _SearchPageState extends ConsumerState { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text( - "${item.name} (${item.firstAirDate?.year})", - style: const TextStyle( - fontSize: 14, fontWeight: FontWeight.bold), + Row( + children: [ + Text( + "${item.name} (${item.firstAirDate?.year})", + style: const TextStyle( + fontSize: 14, + fontWeight: FontWeight.bold), + ), + const SizedBox(width: 10,), + item.mediaType == "tv" ? const Icon(Icons.live_tv): const Icon(Icons.movie) + ], ), const Text(""), - Text(item.overview!) + Text("${item.overview}") ], ), ) @@ -173,8 +180,8 @@ class _SearchPageState extends ConsumerState { print(_storageSelected); ref .read(searchPageDataProvider.notifier) - .submit2Watchlist( - item.id!, _storageSelected, _resSelected, item.mediaType!); + .submit2Watchlist(item.id!, _storageSelected, + _resSelected, item.mediaType!); Navigator.of(context).pop(); }, ),