diff --git a/Dockerfile b/Dockerfile index f5fad45..107f042 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ WORKDIR /app COPY ./ui/pubspec.yaml ./ui/pubspec.lock ./ RUN flutter pub get COPY ./ui/ ./ -RUN flutter build web --no-web-resources-cdn +RUN flutter build web --no-web-resources-cdn --web-renderer html # 打包依赖阶段使用golang作为基础镜像 FROM golang:1.22 as builder diff --git a/ui/lib/movie_watchlist.dart b/ui/lib/movie_watchlist.dart index dad44e4..a901151 100644 --- a/ui/lib/movie_watchlist.dart +++ b/ui/lib/movie_watchlist.dart @@ -43,7 +43,8 @@ class _MovieDetailsPageState extends ConsumerState { decoration: BoxDecoration( image: DecorationImage( fit: BoxFit.cover, - opacity: 0.5, + opacity: 0.3, + colorFilter: ColorFilter.mode(Colors.black.withOpacity(0.3), BlendMode.dstATop), image: NetworkImage( "${APIs.imagesUrl}/${details.id}/backdrop.jpg", ))), diff --git a/ui/lib/tv_details.dart b/ui/lib/tv_details.dart index b30ab06..e1cea61 100644 --- a/ui/lib/tv_details.dart +++ b/ui/lib/tv_details.dart @@ -153,7 +153,8 @@ class _TvDetailsPageState extends ConsumerState { decoration: BoxDecoration( image: DecorationImage( fit: BoxFit.cover, - opacity: 0.5, + opacity: 0.3, + colorFilter: ColorFilter.mode(Colors.black.withOpacity(0.3), BlendMode.dstATop), image: NetworkImage( "${APIs.imagesUrl}/${details.id}/backdrop.jpg"))), child: Padding( diff --git a/ui/lib/welcome_page.dart b/ui/lib/welcome_page.dart index 500f6b4..2e8c3ee 100644 --- a/ui/lib/welcome_page.dart +++ b/ui/lib/welcome_page.dart @@ -64,19 +64,23 @@ class WelcomePage extends ConsumerWidget { ), SizedBox( width: 140, - child: LinearProgressIndicator( - value: 1, - color: item.status == "downloaded" - ? Colors.green - : Colors.blue, + child: Column( + children: [ + LinearProgressIndicator( + value: 1, + color: item.status == "downloaded" + ? Colors.green + : Colors.blue, + ), + Text( + item.name!, + style: const TextStyle( + fontSize: 14, + fontWeight: FontWeight.bold, + height: 2.5), + ), + ], )), - Text( - item.name!, - style: const TextStyle( - fontSize: 14, - fontWeight: FontWeight.bold, - height: 2.5), - ), ], ), ));