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

@@ -1272,14 +1272,16 @@ class _VideoDetailPageState extends State<VideoDetailPage>
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];

View File

@@ -1565,14 +1565,16 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
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) {