mirror of
https://github.com/simon-ding/polaris.git
synced 2026-05-26 20:47:57 +08:00
feat(ui): show loading animation
This commit is contained in:
@@ -166,13 +166,14 @@ class _ActivityPageState extends ConsumerState<ActivityPage>
|
|||||||
: (selectedTab == 1
|
: (selectedTab == 1
|
||||||
? IconButton(
|
? IconButton(
|
||||||
tooltip: "完成做种",
|
tooltip: "完成做种",
|
||||||
onPressed: () => {
|
onPressed: () {
|
||||||
ref
|
var f = ref
|
||||||
.read(activitiesDataProvider(
|
.read(activitiesDataProvider(
|
||||||
ActivityStatus.active)
|
ActivityStatus.active)
|
||||||
.notifier)
|
.notifier)
|
||||||
.deleteActivity(ac.id!, false)
|
.deleteActivity(ac.id!, false);
|
||||||
},
|
showLoadingWithFuture(f);
|
||||||
|
},
|
||||||
icon: const Icon(Icons.check))
|
icon: const Icon(Icons.check))
|
||||||
: const Text("-")),
|
: const Text("-")),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user