feat: better seeding status

This commit is contained in:
Simon Ding
2024-08-11 23:09:34 +08:00
parent a0e211c328
commit 6fd39d818c
9 changed files with 57 additions and 49 deletions

View File

@@ -89,17 +89,16 @@ class _ActivityPageState extends ConsumerState<ActivityPage>
Icons.close,
color: Colors.red,
));
} else if (ac.status == "seeding") {
//seeding
return const Tooltip(
message: "做种中",
child: Icon(
Icons.upload,
//color: Colors.blue,
),
);
} else if (ac.status == "success") {
if (ac.progress == 100) {
//seeding
return const Tooltip(
message: "做种中",
child: Icon(
Icons.upload,
//color: Colors.blue,
),
);
}
return const Tooltip(
message: "下载成功",
child: Icon(