mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-08 10:10:13 +08:00
@@ -78,11 +78,8 @@ class _LiveHeaderControlState extends State<LiveHeaderControl>
|
||||
liveController.title.value,
|
||||
spacing: 30,
|
||||
velocity: 30,
|
||||
style: const TextStyle(
|
||||
fontSize: 15,
|
||||
height: 1,
|
||||
color: Colors.white,
|
||||
),
|
||||
strutStyle: const StrutStyle(fontSize: 15, leading: 0),
|
||||
style: const TextStyle(fontSize: 15, height: 1, color: Colors.white),
|
||||
),
|
||||
);
|
||||
if (isFullScreen) {
|
||||
|
||||
@@ -605,37 +605,23 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
}
|
||||
|
||||
Widget _buildOverlayToolBar(double scrollRatio) {
|
||||
final Icon icon;
|
||||
final double spacing;
|
||||
final IconData icon;
|
||||
final String playStat;
|
||||
if (videoDetailController.playedTime == null) {
|
||||
spacing = 2;
|
||||
icon = Icon(
|
||||
Icons.play_arrow_rounded,
|
||||
color: themeData.colorScheme.primary,
|
||||
);
|
||||
icon = Icons.play_arrow_rounded;
|
||||
playStat = '立即';
|
||||
} else if (plPlayerController!.isCompleted) {
|
||||
spacing = 4;
|
||||
icon = Icon(
|
||||
size: 18,
|
||||
Icons.replay_rounded,
|
||||
color: themeData.colorScheme.primary,
|
||||
);
|
||||
icon = CustomIcons.replay_rounded;
|
||||
playStat = '重新';
|
||||
} else {
|
||||
spacing = 2;
|
||||
icon = Icon(
|
||||
Icons.play_arrow_rounded,
|
||||
color: themeData.colorScheme.primary,
|
||||
);
|
||||
icon = Icons.play_arrow_rounded;
|
||||
playStat = '继续';
|
||||
}
|
||||
final playBtn = Row(
|
||||
spacing: spacing,
|
||||
spacing: 2,
|
||||
mainAxisSize: .min,
|
||||
children: [
|
||||
icon,
|
||||
Icon(icon, color: themeData.colorScheme.primary),
|
||||
Text(
|
||||
'$playStat播放',
|
||||
style: TextStyle(color: themeData.colorScheme.primary),
|
||||
|
||||
@@ -1693,10 +1693,8 @@ class HeaderControlState extends State<HeaderControl>
|
||||
title,
|
||||
spacing: 30,
|
||||
velocity: 30,
|
||||
style: const TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 16,
|
||||
),
|
||||
strutStyle: const StrutStyle(fontSize: 16, leading: 0),
|
||||
style: const TextStyle(color: Colors.white, fontSize: 16),
|
||||
provider: effectiveProvider,
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user