mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
opt.: show loading dialog
This commit is contained in:
@@ -430,10 +430,9 @@ final class _PvePageState extends State<PvePage> {
|
||||
],
|
||||
);
|
||||
if (sure != true) return;
|
||||
bool? suc;
|
||||
await context.showLoadingDialog(fn: () async {
|
||||
suc = await func(item.node, item.id);
|
||||
});
|
||||
|
||||
final suc =
|
||||
await context.showLoadingDialog(fn: () => func(item.node, item.id));
|
||||
if (suc == true) {
|
||||
context.showSnackBar(l10n.success);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user