update _fetchPeers

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
This commit is contained in:
Sahil Yeole 2023-10-17 18:23:44 +05:30
parent e0985ebb1c
commit c00d4c1a7b

View File

@ -157,11 +157,11 @@ class _ConnectionPageState extends State<ConnectionPage>
setState(() { setState(() {
isPeersLoading = true; isPeersLoading = true;
}); });
await Future.delayed(Duration(milliseconds: 100)); await Future.delayed(Duration(milliseconds: 100));
await _getAllPeers(); await _getAllPeers();
setState(() { setState(() {
isPeersLoading = false; isPeersLoading = false;
}); });
} }
Future<void> _getAllPeers() async { Future<void> _getAllPeers() async {