Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-07-06 15:47:52 +08:00
parent aa03eed92d
commit 6bedd9d25f
7 changed files with 27 additions and 46 deletions

View File

@@ -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) {

View File

@@ -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),

View File

@@ -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,
);
},