From cbb333476ac2c82a12873814facec7c6fe9ea9ef Mon Sep 17 00:00:00 2001 From: Hamlet Jiang Su <30667958+hjiangsu@users.noreply.github.com> Date: Thu, 25 Jan 2024 08:56:35 -0800 Subject: [PATCH] Fixed issue where feed FAB can be triggered on other pages (#1085) --- lib/thunder/pages/thunder_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/thunder/pages/thunder_page.dart b/lib/thunder/pages/thunder_page.dart index 0919d34bc..ee1199c13 100644 --- a/lib/thunder/pages/thunder_page.dart +++ b/lib/thunder/pages/thunder_page.dart @@ -479,7 +479,7 @@ class _ThunderState extends State { opacity: selectedPageIndex == 0 ? 1.0 : 0.0, duration: const Duration(milliseconds: 150), curve: Curves.easeIn, - child: FeedFAB(scaffoldMessengerKey: scaffoldMessengerKey), + child: IgnorePointer(ignoring: selectedPageIndex != 0, child: FeedFAB(scaffoldMessengerKey: scaffoldMessengerKey)), ) : null, floatingActionButtonAnimator: FloatingActionButtonAnimator.scaling,