set LANG in shell

This commit is contained in:
Junyuan Feng
2022-05-05 16:53:35 +08:00
parent 29e3ee0156
commit 74a933eb6e
12 changed files with 65 additions and 66 deletions

View File

@@ -122,7 +122,7 @@ class _SnippetListPageState extends State<SnippetListPage> {
TextButton(
onPressed: () async =>
await _import(_importFieldController.text.trim()),
child: Text('GO'),
child: const Text('GO'),
)
]);
}
@@ -246,11 +246,9 @@ class _SnippetListPageState extends State<SnippetListPage> {
]));
}), [
TextButton(
onPressed: () async => run(context, snippet),
child: Text(s.run)),
onPressed: () async => run(context, snippet), child: Text(s.run)),
TextButton(
onPressed: () => Navigator.of(context).pop(),
child: Text(s.cancel)),
onPressed: () => Navigator.of(context).pop(), child: Text(s.cancel)),
]);
}
@@ -261,8 +259,7 @@ class _SnippetListPageState extends State<SnippetListPage> {
showRoundDialog(context, s.result,
Text(result, style: const TextStyle(fontSize: 13)), [
TextButton(
onPressed: () => Navigator.of(context).pop(),
child: Text(s.close))
onPressed: () => Navigator.of(context).pop(), child: Text(s.close))
]);
}
}