add bar hide type

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-02-18 21:12:34 +08:00
parent a142b15344
commit 3f3d54fd27
12 changed files with 223 additions and 63 deletions

View File

@@ -1653,7 +1653,11 @@ class _VerticalTabBarState extends State<VerticalTabBar> {
tabCenter +
paddingTop -
viewportWidth / 2.0 +
(_mainCtr.useBottomNav && (_mainCtr.barOffset?.value ?? 0) == 0
(_mainCtr.useBottomNav &&
switch (_mainCtr.barHideType) {
.instant => _mainCtr.showBottomBar?.value ?? true,
.sync => (_mainCtr.barOffset?.value ?? 0) == 0,
}
? 80.0
: 0.0),
minExtent,