diff --git a/flutter/lib/desktop/pages/connection_page.dart b/flutter/lib/desktop/pages/connection_page.dart index 7c4da7d9c..f9984b955 100644 --- a/flutter/lib/desktop/pages/connection_page.dart +++ b/flutter/lib/desktop/pages/connection_page.dart @@ -157,11 +157,11 @@ class _ConnectionPageState extends State setState(() { isPeersLoading = true; }); - await Future.delayed(Duration(milliseconds: 100)); - await _getAllPeers(); - setState(() { - isPeersLoading = false; - }); + await Future.delayed(Duration(milliseconds: 100)); + await _getAllPeers(); + setState(() { + isPeersLoading = false; + }); } Future _getAllPeers() async {