Will display the exception of Server Connection

This commit is contained in:
LollipopKit
2021-11-08 19:13:24 +08:00
parent e0fb591dea
commit 89ef2cb95c
4 changed files with 7 additions and 5 deletions

View File

@@ -122,7 +122,7 @@ class _SnippetListPageState extends State<SnippetListPage> {
final result = await locator<ServerProvider>()
.runSnippet(_selectedIndex, snippet);
if (result != null) {
showRoundDialog(context, 'Result', Text(result), [
showRoundDialog(context, 'Result', Text(result, style: const TextStyle(fontSize: 13)), [
TextButton(
onPressed: () => Navigator.of(context).pop(),
child: const Text('Close'))