migrate: fl_lib

This commit is contained in:
lollipopkit🏳️‍⚧️
2024-08-01 13:44:32 +08:00
parent 969643d3df
commit 73248011a1
11 changed files with 119 additions and 123 deletions

View File

@@ -430,12 +430,13 @@ final class _PvePageState extends State<PvePage> {
);
if (sure != true) return;
final suc =
await context.showLoadingDialog(fn: () => func(item.node, item.id));
final (suc, err) = await context.showLoadingDialog(
fn: () => func(item.node, item.id),
);
if (suc == true) {
context.showSnackBar(l10n.success);
} else {
context.showSnackBar(l10n.failed);
context.showSnackBar(err?.toString() ?? l10n.failed);
}
}