fix hide bottom bar

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-02-18 18:33:33 +08:00
parent 651e79ce26
commit a142b15344

View File

@@ -299,18 +299,16 @@ class _MainAppState extends PopScopeState<MainApp>
), ),
) )
: null; : null;
if (bottomNav != null) { if (bottomNav != null && _mainController.hideBottomBar) {
if (_mainController.barOffset case final bottomBarOffset?) {
return Obx( return Obx(
() => CustomHeightWidget( () => CustomHeightWidget(
height: height:
_mainController.navHeight * _mainController.navHeight *
(1 - bottomBarOffset.value / StyleString.topBarHeight), (1 - _mainController.barOffset!.value / StyleString.topBarHeight),
child: bottomNav, child: bottomNav,
), ),
); );
} }
}
return bottomNav; return bottomNav;
} }