refactor: progressBar

This commit is contained in:
guozhigq
2024-11-29 23:51:58 +08:00
parent 65c9027ef3
commit b79a664e94
3 changed files with 59 additions and 46 deletions

View File

@ -842,8 +842,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
total: Duration(seconds: max),
progressBarColor: colorTheme,
baseBarColor: Colors.white.withOpacity(0.2),
bufferedBarColor:
Theme.of(context).colorScheme.primary.withOpacity(0.4),
bufferedBarColor: Colors.white.withOpacity(0.6),
timeLabelLocation: TimeLabelLocation.none,
thumbColor: colorTheme,
barHeight: 3,