From a142b15344524eda2e1eae1778e8031cde10b822 Mon Sep 17 00:00:00 2001 From: dom Date: Wed, 18 Feb 2026 18:33:33 +0800 Subject: [PATCH] fix hide bottom bar Signed-off-by: dom --- lib/pages/main/view.dart | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/lib/pages/main/view.dart b/lib/pages/main/view.dart index 0aa3993c4..5146d459c 100644 --- a/lib/pages/main/view.dart +++ b/lib/pages/main/view.dart @@ -299,17 +299,15 @@ class _MainAppState extends PopScopeState ), ) : null; - if (bottomNav != null) { - if (_mainController.barOffset case final bottomBarOffset?) { - return Obx( - () => CustomHeightWidget( - height: - _mainController.navHeight * - (1 - bottomBarOffset.value / StyleString.topBarHeight), - child: bottomNav, - ), - ); - } + if (bottomNav != null && _mainController.hideBottomBar) { + return Obx( + () => CustomHeightWidget( + height: + _mainController.navHeight * + (1 - _mainController.barOffset!.value / StyleString.topBarHeight), + child: bottomNav, + ), + ); } return bottomNav; }