feat(ui): show loading animation

This commit is contained in:
Simon Ding
2025-04-23 16:49:12 +08:00
parent 9c7129660c
commit f074d38f4f

View File

@@ -166,13 +166,14 @@ class _ActivityPageState extends ConsumerState<ActivityPage>
: (selectedTab == 1
? IconButton(
tooltip: "完成做种",
onPressed: () => {
ref
.read(activitiesDataProvider(
ActivityStatus.active)
.notifier)
.deleteActivity(ac.id!, false)
},
onPressed: () {
var f = ref
.read(activitiesDataProvider(
ActivityStatus.active)
.notifier)
.deleteActivity(ac.id!, false);
showLoadingWithFuture(f);
},
icon: const Icon(Icons.check))
: const Text("-")),
),