opt. for performance

This commit is contained in:
lollipopkit
2023-06-05 17:51:52 +08:00
parent 378baf589a
commit 7b1c1b9a5a
15 changed files with 68 additions and 126 deletions

View File

@@ -97,12 +97,7 @@ class _PrivateKeyEditPageState extends State<PrivateKeyEditPage>
}
FocusScope.of(context).unfocus();
setState(() {
_loading = const SizedBox(
height: 50,
child: Center(
child: CircularProgressIndicator(),
),
);
_loading = centerSizedLoading;
});
final info = PrivateKeyInfo(name, key, '');
try {