diff --git a/README.md b/README.md index a7facf1a..7140177a 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ English | [简体中文](README_zh.md)

-A Flutter project which provide charts to display Linux[](../../issues/43) server status and tools to manage server. +A Flutter project which provide charts to display Linux server status and tools to manage server.
Especially thanks to dartssh2 & xterm.dart.

diff --git a/README_zh.md b/README_zh.md index b64e67d5..6c5250ac 100644 --- a/README_zh.md +++ b/README_zh.md @@ -18,7 +18,7 @@

-使用Flutter开发的服务器工具箱,提供服务器状态图表和管理工具。 +使用 Flutter 开发的 Linux 服务器工具箱,提供服务器状态图表和管理工具。
特别感谢 dartssh2 & xterm.dart.

diff --git a/lib/view/page/setting.dart b/lib/view/page/setting.dart index 572439e3..4fc7ecb1 100644 --- a/lib/view/page/setting.dart +++ b/lib/view/page/setting.dart @@ -575,25 +575,27 @@ class _SettingPageState extends State { final paths = _setting.diskIgnorePath.fetch()!; return ListTile( title: Text(_s.diskIgnorePath), - trailing: Text(_s.edit, style: textSize15,), - onTap: () { - showRoundDialog(context: context, child: Input( - controller: TextEditingController(text: json.encode(paths)), - label: 'JSON', - type: TextInputType.visiblePassword, - maxLines: 3, - onSubmitted: (p0) { - try { - final list = List.from(json.decode(p0)); - _setting.diskIgnorePath.put(list); - context.pop(); - showSnackBar(context, Text(_s.success)); - } catch (e) { - showSnackBar(context, Text(e.toString())); - } - }, - )); - }, + trailing: Text(_s.edit, style: textSize15), + onTap: () { + showRoundDialog( + context: context, + child: Input( + controller: TextEditingController(text: json.encode(paths)), + label: 'JSON', + type: TextInputType.visiblePassword, + maxLines: 3, + onSubmitted: (p0) { + try { + final list = List.from(json.decode(p0)); + _setting.diskIgnorePath.put(list); + context.pop(); + showSnackBar(context, Text(_s.success)); + } catch (e) { + showSnackBar(context, Text(e.toString())); + } + }, + )); + }, ); } }