From 664aaefd8a8bb0411072078243e127651b0d6aca Mon Sep 17 00:00:00 2001 From: Prayas-Agrawal Date: Sun, 28 Jan 2024 18:30:29 +0530 Subject: [PATCH] FIX: Lost&Found: Loading Posts #48 --- lib/src/routes/lostandfoundfeedpage.dart | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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..."), )); }