opt: player control textStyle
This commit is contained in:
@ -1080,10 +1080,7 @@ class _HeaderControlState extends State<HeaderControl> {
|
|||||||
if (videoIntroController.isShowOnlineTotal)
|
if (videoIntroController.isShowOnlineTotal)
|
||||||
Text(
|
Text(
|
||||||
'${videoIntroController.total.value}人正在看',
|
'${videoIntroController.total.value}人正在看',
|
||||||
style: const TextStyle(
|
style: textStyle,
|
||||||
color: Colors.white,
|
|
||||||
fontSize: 12,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
Expanded(
|
Expanded(
|
||||||
@ -1094,18 +1091,12 @@ class _HeaderControlState extends State<HeaderControl> {
|
|||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
if (snapshot.hasData) {
|
if (snapshot.hasData) {
|
||||||
String currentTime = _formatTime(snapshot.data!);
|
String currentTime = _formatTime(snapshot.data!);
|
||||||
return Text(
|
return Text(currentTime, style: textStyle);
|
||||||
currentTime,
|
|
||||||
style: const TextStyle(fontSize: 12),
|
|
||||||
);
|
|
||||||
} else if (snapshot.connectionState ==
|
} else if (snapshot.connectionState ==
|
||||||
ConnectionState.waiting) {
|
ConnectionState.waiting) {
|
||||||
// 如果Stream还未发出数据,先显示初始获取的时间
|
// 如果Stream还未发出数据,先显示初始获取的时间
|
||||||
String currentTime = _formatTime(initialTime);
|
String currentTime = _formatTime(initialTime);
|
||||||
return Text(
|
return Text(currentTime, style: textStyle);
|
||||||
currentTime,
|
|
||||||
style: const TextStyle(fontSize: 12),
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
return const SizedBox();
|
return const SizedBox();
|
||||||
}
|
}
|
||||||
@ -1156,7 +1147,8 @@ class _HeaderControlState extends State<HeaderControl> {
|
|||||||
() => Marquee(
|
() => Marquee(
|
||||||
text: videoIntroController.videoDetail.value.title ??
|
text: videoIntroController.videoDetail.value.title ??
|
||||||
'',
|
'',
|
||||||
style: const TextStyle(fontSize: 16),
|
style: const TextStyle(
|
||||||
|
fontSize: 16, color: Colors.white),
|
||||||
scrollAxis: Axis.horizontal,
|
scrollAxis: Axis.horizontal,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
blankSpace: constraints.maxWidth,
|
blankSpace: constraints.maxWidth,
|
||||||
|
|||||||
@ -292,10 +292,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
padding: MaterialStateProperty.all(EdgeInsets.zero),
|
padding: MaterialStateProperty.all(EdgeInsets.zero),
|
||||||
),
|
),
|
||||||
child: const Text(
|
child: const Text('选集', style: textStyle),
|
||||||
'选集',
|
|
||||||
style: TextStyle(color: Colors.white, fontSize: 13),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
@ -310,14 +307,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
padding: MaterialStateProperty.all(EdgeInsets.zero),
|
padding: MaterialStateProperty.all(EdgeInsets.zero),
|
||||||
),
|
),
|
||||||
child: Obx(
|
child: Obx(
|
||||||
() => Text(
|
() => Text(_.videoFitDEsc.value, style: textStyle),
|
||||||
_.videoFitDEsc.value,
|
|
||||||
style: const TextStyle(
|
|
||||||
color: Colors.white,
|
|
||||||
fontSize: 12,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -339,10 +329,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
height: 40,
|
height: 40,
|
||||||
padding: const EdgeInsets.only(left: 20),
|
padding: const EdgeInsets.only(left: 20),
|
||||||
value: speed,
|
value: speed,
|
||||||
child: Text(
|
child: Text('${speed}x', style: textStyle),
|
||||||
'${speed}x',
|
|
||||||
style: textStyle.copyWith(fontWeight: FontWeight.bold),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}).toList();
|
}).toList();
|
||||||
},
|
},
|
||||||
@ -352,10 +339,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
margin: const EdgeInsets.only(right: 4),
|
margin: const EdgeInsets.only(right: 4),
|
||||||
child: Obx(
|
child: Obx(
|
||||||
() => Text(
|
() => Text('${_.playbackSpeed.toString()}x', style: textStyle),
|
||||||
'${_.playbackSpeed.toString()}x',
|
|
||||||
style: textStyle.copyWith(fontWeight: FontWeight.bold),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user