feat: default to html render

This commit is contained in:
Simon Ding
2024-07-30 10:08:21 +08:00
parent cff093ca98
commit ba532d406a
4 changed files with 21 additions and 15 deletions

View File

@@ -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

View File

@@ -43,7 +43,8 @@ class _MovieDetailsPageState extends ConsumerState<MovieDetailsPage> {
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",
))),

View File

@@ -153,7 +153,8 @@ class _TvDetailsPageState extends ConsumerState<TvDetailsPage> {
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(

View File

@@ -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),
),
],
),
));