From 664aaefd8a8bb0411072078243e127651b0d6aca Mon Sep 17 00:00:00 2001 From: Prayas-Agrawal Date: Sun, 28 Jan 2024 18:30:29 +0530 Subject: [PATCH 1/4] 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..."), )); } From 10b75243a9fe247add6718c8cd2f6f30aca5aafd Mon Sep 17 00:00:00 2001 From: Prayas-Agrawal Date: Sun, 28 Jan 2024 18:38:02 +0530 Subject: [PATCH 2/4] FIX: Buy&Sell: Loading Posts --- lib/src/routes/buynsell_page.dart | 8 ++++++++ 1 file changed, 8 insertions(+) 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, From aeffd7963eeceb3033f268b590a7fff4ed37114d Mon Sep 17 00:00:00 2001 From: Prayas-Agrawal Date: Sun, 28 Jan 2024 20:19:08 +0530 Subject: [PATCH 3/4] reset to master --- lib/src/routes/buynsell_page.dart | 8 -------- lib/src/routes/lostandfoundfeedpage.dart | 8 -------- 2 files changed, 16 deletions(-) diff --git a/lib/src/routes/buynsell_page.dart b/lib/src/routes/buynsell_page.dart index dd8cdf5..687b28a 100644 --- a/lib/src/routes/buynsell_page.dart +++ b/lib/src/routes/buynsell_page.dart @@ -204,14 +204,6 @@ 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 7e85da1..96e3124 100644 --- a/lib/src/routes/lostandfoundfeedpage.dart +++ b/lib/src/routes/lostandfoundfeedpage.dart @@ -168,14 +168,6 @@ 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, From a74ffda72a8a481b464ea7db0677d9a80523c972 Mon Sep 17 00:00:00 2001 From: Prayas-Agrawal Date: Sun, 28 Jan 2024 22:07:45 +0530 Subject: [PATCH 4/4] FIX: Communities Page: Notification Button #44 --- lib/src/utils/customappbar.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/src/utils/customappbar.dart b/lib/src/utils/customappbar.dart index 744905a..9bb5cad 100644 --- a/lib/src/utils/customappbar.dart +++ b/lib/src/utils/customappbar.dart @@ -77,7 +77,11 @@ class _CustomAppBarState extends State { })); } - actionButtons.add(_buildIcon(Icons.notifications_outlined, () {})); + actionButtons.add(_buildIcon(Icons.notifications_outlined, () { + var navi = Navigator.of(context); + navi.pop(); + navi.pushNamed('/notifications'); + })); firstBuild = false; }