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(() {
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<void> _getAllPeers() async {