opt tabbar

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-23 10:59:55 +08:00
parent 66c43fe4ec
commit 855b35e1dc
19 changed files with 167 additions and 222 deletions

View File

@@ -40,13 +40,13 @@ class _HomePageState extends State<HomePage>
height: 42,
width: double.infinity,
child: TabBar(
dividerHeight: 0,
isScrollable: true,
tabAlignment: .center,
splashBorderRadius: Style.mdRadius,
dividerColor: Colors.transparent,
controller: _homeController.tabController,
tabs: HomeTabType.values.map((e) => Tab(text: e.label)).toList(),
isScrollable: true,
dividerColor: Colors.transparent,
dividerHeight: 0,
splashBorderRadius: Style.mdRadius,
tabAlignment: TabAlignment.center,
onTap: (_) {
if (!_homeController.tabController.indexIsChanging) {
_homeController.animateToTop();