diff --git a/lib/pages/video/detail/widgets/header_control.dart b/lib/pages/video/detail/widgets/header_control.dart index 718cdac6..165fda90 100644 --- a/lib/pages/video/detail/widgets/header_control.dart +++ b/lib/pages/video/detail/widgets/header_control.dart @@ -1080,10 +1080,7 @@ class _HeaderControlState extends State { if (videoIntroController.isShowOnlineTotal) Text( '${videoIntroController.total.value}人正在看', - style: const TextStyle( - color: Colors.white, - fontSize: 12, - ), + style: textStyle, ), const Spacer(), Expanded( @@ -1094,18 +1091,12 @@ class _HeaderControlState extends State { builder: (context, snapshot) { if (snapshot.hasData) { String currentTime = _formatTime(snapshot.data!); - return Text( - currentTime, - style: const TextStyle(fontSize: 12), - ); + return Text(currentTime, style: textStyle); } else if (snapshot.connectionState == ConnectionState.waiting) { // 如果Stream还未发出数据,先显示初始获取的时间 String currentTime = _formatTime(initialTime); - return Text( - currentTime, - style: const TextStyle(fontSize: 12), - ); + return Text(currentTime, style: textStyle); } else { return const SizedBox(); } @@ -1156,7 +1147,8 @@ class _HeaderControlState extends State { () => Marquee( text: videoIntroController.videoDetail.value.title ?? '', - style: const TextStyle(fontSize: 16), + style: const TextStyle( + fontSize: 16, color: Colors.white), scrollAxis: Axis.horizontal, crossAxisAlignment: CrossAxisAlignment.center, blankSpace: constraints.maxWidth, diff --git a/lib/plugin/pl_player/view.dart b/lib/plugin/pl_player/view.dart index 0790d10a..01a1b65f 100644 --- a/lib/plugin/pl_player/view.dart +++ b/lib/plugin/pl_player/view.dart @@ -292,10 +292,7 @@ class _PLVideoPlayerState extends State style: ButtonStyle( padding: MaterialStateProperty.all(EdgeInsets.zero), ), - child: const Text( - '选集', - style: TextStyle(color: Colors.white, fontSize: 13), - ), + child: const Text('选集', style: textStyle), ), ), @@ -310,14 +307,7 @@ class _PLVideoPlayerState extends State padding: MaterialStateProperty.all(EdgeInsets.zero), ), child: Obx( - () => Text( - _.videoFitDEsc.value, - style: const TextStyle( - color: Colors.white, - fontSize: 12, - fontWeight: FontWeight.bold, - ), - ), + () => Text(_.videoFitDEsc.value, style: textStyle), ), ), ), @@ -339,10 +329,7 @@ class _PLVideoPlayerState extends State height: 40, padding: const EdgeInsets.only(left: 20), value: speed, - child: Text( - '${speed}x', - style: textStyle.copyWith(fontWeight: FontWeight.bold), - ), + child: Text('${speed}x', style: textStyle), ); }).toList(); }, @@ -352,10 +339,7 @@ class _PLVideoPlayerState extends State alignment: Alignment.center, margin: const EdgeInsets.only(right: 4), child: Obx( - () => Text( - '${_.playbackSpeed.toString()}x', - style: textStyle.copyWith(fontWeight: FontWeight.bold), - ), + () => Text('${_.playbackSpeed.toString()}x', style: textStyle), ), ), ),