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,17 +299,15 @@ class _MainAppState extends PopScopeState<MainApp>
),
)
: 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;
}