ui: improve error readablity

This commit is contained in:
Simon Ding
2024-11-05 12:43:17 +08:00
parent 949b6e5188
commit f1c4e306f4
13 changed files with 44 additions and 26 deletions

View File

@@ -33,7 +33,7 @@ class _IndexerState extends ConsumerState<IndexerSettings> {
child: const Icon(Icons.add));
}),
),
error: (err, trace) => Text("$err"),
error: (err, trace) => PoError(msg: "网络错误", err: err),
loading: () => const MyProgressIndicator());
}