mirror of
https://github.com/simon-ding/polaris.git
synced 2026-04-21 03:07:30 +08:00
feat: better seeding status
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user