mirror of
https://github.com/simon-ding/polaris.git
synced 2026-05-26 12:38:41 +08:00
feature: change icon
This commit is contained in:
@@ -31,14 +31,15 @@ class ActivityPage extends ConsumerWidget {
|
|||||||
DataCell(Text("${activity.date!.toLocal()}")),
|
DataCell(Text("${activity.date!.toLocal()}")),
|
||||||
DataCell(() {
|
DataCell(() {
|
||||||
if (activity.inBackgroud == true) {
|
if (activity.inBackgroud == true) {
|
||||||
return const MyProgressIndicator(size: 20,);
|
return const MyProgressIndicator(
|
||||||
|
size: 20,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (activity.completed != true && activity.progress == 0) {
|
if (activity.completed != true && activity.progress == 0) {
|
||||||
return const MyProgressIndicator(
|
return const Icon(
|
||||||
value: 1,
|
Icons.close,
|
||||||
color: Colors.red,
|
color: Colors.red,
|
||||||
size: 20,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user