opt: tabbar

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-05 00:04:38 +08:00
parent 7667e73d9d
commit 9c21f03df8
6 changed files with 17 additions and 13 deletions

View File

@@ -132,15 +132,12 @@ class _DanmakuBlockPageState extends State<DanmakuBlockPage> {
return Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
title: TabBar(
controller: _danmakuBlockController.tabController,
dividerColor: Colors.transparent,
tabs: [
for (var i = 0; i < ruleLabels.length; i++)
Obx(() => Tab(
text:
'${ruleLabels[i]}(${_danmakuBlockController.ruleTypes[i]!.length})')),
]),
title: TabBar(controller: _danmakuBlockController.tabController, tabs: [
for (var i = 0; i < ruleLabels.length; i++)
Obx(() => Tab(
text:
'${ruleLabels[i]}(${_danmakuBlockController.ruleTypes[i]!.length})')),
]),
),
body: tabBarView(
controller: _danmakuBlockController.tabController,