ui: improve error

This commit is contained in:
Simon Ding
2024-11-05 12:54:52 +08:00
parent f1c4e306f4
commit 05ae58030c
13 changed files with 23 additions and 14 deletions

View File

@@ -170,7 +170,7 @@ class _GeneralState extends ConsumerState<GeneralSettings> {
),
);
},
error: (err, trace) => PoError(msg: "网络错误", err: err),
error: (err, trace) => PoNetworkError(err: err),
loading: () => const MyProgressIndicator());
}
}