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; }