Skip to content

Commit

Permalink
FIX: Lost&Found: Loading Posts DevCom-IITB#48
Browse files Browse the repository at this point in the history
  • Loading branch information
Prayas-Agrawal committed Jan 28, 2024
1 parent 865481c commit 664aaef
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/src/routes/lostandfoundfeedpage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,14 @@ class _LostpageState extends State<LostPage> {
stream: lnFPostBloc.lostAndFoundPosts,
builder: (BuildContext context,
AsyncSnapshot<List<LostAndFoundPost>> 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,
Expand All @@ -178,7 +186,7 @@ class _LostpageState extends State<LostPage> {
return Center(
child:
CircularProgressIndicatorExtended(
label: Text("Loading..."),
label: Text("Loading..."),
));
}

Expand Down

0 comments on commit 664aaef

Please sign in to comment.