diff --git a/lib/src/routes/buynsell_page.dart b/lib/src/routes/buynsell_page.dart index 687b28a..dd8cdf5 100644 --- a/lib/src/routes/buynsell_page.dart +++ b/lib/src/routes/buynsell_page.dart @@ -204,6 +204,14 @@ class _SellpageState extends State { stream: buynSellPostBloc.buynsellposts, builder: (BuildContext context, AsyncSnapshot> snapshot) { + if (snapshot.connectionState == + ConnectionState.waiting) { + return Center( + child: CircularProgressIndicatorExtended( + label: Text("Getting the latest posts"), + ), + ); + } return ListView.builder( primary: false, shrinkWrap: true, diff --git a/lib/src/routes/lostandfoundfeedpage.dart b/lib/src/routes/lostandfoundfeedpage.dart index 82a9ed8..7e85da1 100644 --- a/lib/src/routes/lostandfoundfeedpage.dart +++ b/lib/src/routes/lostandfoundfeedpage.dart @@ -168,6 +168,14 @@ class _LostpageState extends State { stream: lnFPostBloc.lostAndFoundPosts, builder: (BuildContext context, AsyncSnapshot> snapshot) { + if (snapshot.connectionState == + ConnectionState.waiting) { + return Center( + child: CircularProgressIndicatorExtended( + label: Text("Getting the latest posts"), + ), + ); + } if (snapshot.data?.length != 0) { return ListView.builder( primary: false, @@ -178,7 +186,7 @@ class _LostpageState extends State { return Center( child: CircularProgressIndicatorExtended( - label: Text("Loading..."), + label: Text("Loading..."), )); }