diff --git a/lib/pages/danmaku_block/index.dart b/lib/pages/danmaku_block/index.dart index c34641f7..f09fc65d 100644 --- a/lib/pages/danmaku_block/index.dart +++ b/lib/pages/danmaku_block/index.dart @@ -132,15 +132,12 @@ class _DanmakuBlockPageState extends State { 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, diff --git a/lib/pages/emote/view.dart b/lib/pages/emote/view.dart index 7c8a886c..06a47738 100644 --- a/lib/pages/emote/view.dart +++ b/lib/pages/emote/view.dart @@ -98,6 +98,7 @@ class _EmotePanelState extends State controller: _emotePanelController.tabController, padding: const EdgeInsets.only(right: 60), dividerColor: Colors.transparent, + dividerHeight: 0, isScrollable: true, tabs: (loadingState.response as List) .map( diff --git a/lib/pages/home/view.dart b/lib/pages/home/view.dart index a2753828..0ee4af62 100644 --- a/lib/pages/home/view.dart +++ b/lib/pages/home/view.dart @@ -57,6 +57,7 @@ class _HomePageState extends State ], isScrollable: true, dividerColor: Colors.transparent, + dividerHeight: 0, enableFeedback: true, splashBorderRadius: BorderRadius.circular(10), tabAlignment: TabAlignment.center, diff --git a/lib/pages/search_result/view.dart b/lib/pages/search_result/view.dart index e9c9b57f..081fae28 100644 --- a/lib/pages/search_result/view.dart +++ b/lib/pages/search_result/view.dart @@ -111,6 +111,7 @@ class _SearchResultPageState extends State labelColor: Theme.of(context).colorScheme.onSecondaryContainer, labelStyle: const TextStyle(fontSize: 13), dividerColor: Colors.transparent, + dividerHeight: 0, unselectedLabelColor: Theme.of(context).colorScheme.outline, tabAlignment: TabAlignment.start, onTap: (index) { diff --git a/lib/pages/video/detail/view.dart b/lib/pages/video/detail/view.dart index ba91b284..acc1d676 100644 --- a/lib/pages/video/detail/view.dart +++ b/lib/pages/video/detail/view.dart @@ -1272,14 +1272,16 @@ class _VideoDetailPageState extends State labelColor: needIndicator.not || tabs.length == 1 ? Theme.of(context).colorScheme.onSurface : null, - indicatorColor: - needIndicator.not || tabs.length == 1 ? Colors.transparent : null, + indicator: needIndicator.not || tabs.length == 1 + ? const BoxDecoration() + : null, padding: EdgeInsets.zero, controller: videoDetailController.tabCtr, labelStyle: const TextStyle(fontSize: 13), labelPadding: const EdgeInsets.symmetric(horizontal: 10.0), // 设置每个标签的宽度 dividerColor: Colors.transparent, + dividerHeight: 0, onTap: (value) { void animToTop() { String text = tabs[value]; diff --git a/lib/pages/video/detail/view_v.dart b/lib/pages/video/detail/view_v.dart index 5578f875..2fef92e5 100644 --- a/lib/pages/video/detail/view_v.dart +++ b/lib/pages/video/detail/view_v.dart @@ -1565,14 +1565,16 @@ class _VideoDetailPageVState extends State labelColor: needIndicator.not || tabs.length == 1 ? Theme.of(context).colorScheme.onSurface : null, - indicatorColor: - needIndicator.not || tabs.length == 1 ? Colors.transparent : null, + indicator: needIndicator.not || tabs.length == 1 + ? const BoxDecoration() + : null, padding: EdgeInsets.zero, controller: videoDetailController.tabCtr, labelStyle: const TextStyle(fontSize: 13), labelPadding: const EdgeInsets.symmetric(horizontal: 10.0), // 设置每个标签的宽度 dividerColor: Colors.transparent, + dividerHeight: 0, onTap: (value) { void animToTop() { if (onTap != null) {