feat: simple tv & movie status

This commit is contained in:
Simon Ding
2024-07-26 13:07:54 +08:00
parent 690ce272c2
commit 57de442eb9
3 changed files with 40 additions and 20 deletions

View File

@@ -55,21 +55,13 @@ class WelcomePage extends ConsumerWidget {
),
),
SizedBox(
width: 130,
child: () {
if (item.mediaType == "movie" &&
item.status == "downloaded") {
return const LinearProgressIndicator(
value: 1,
color: Colors.green,
);
}
return const LinearProgressIndicator(
width: 130,
child: LinearProgressIndicator(
value: 1,
color: Colors.blue,
);
}(),
),
color: item.status == "downloaded"
? Colors.green
: Colors.blue,
)),
Text(
item.name!,
style: const TextStyle(