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

@@ -82,10 +82,10 @@ class _PingPageState extends State<PingPage>
);
}
void _doPing() {
Future<void> _doPing() async {
context.pop();
try {
doPing();
await doPing();
} catch (e) {
showRoundDialog(
context: context,