mirror of
https://github.com/simon-ding/polaris.git
synced 2026-03-07 10:00:46 +08:00
feat(ui): show loading animation
This commit is contained in:
@@ -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("-")),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user