Optimzed & Flutter 3.3.4

This commit is contained in:
Junyuan Feng
2022-10-21 17:50:13 +08:00
parent 06302d7162
commit 7f1bd06422
19 changed files with 153 additions and 123 deletions

View File

@@ -99,7 +99,7 @@ class _PrivateKeyEditPageState extends State<PrivateKeyEditPage>
tooltip: s.save,
onPressed: () async {
final name = nameController.text;
final key = keyController.text;
final key = keyController.text.trim();
final pwd = pwdController.text;
if (name.isEmpty || key.isEmpty) {
showSnackBar(context, Text(s.fieldMustNotEmpty));