mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-26 21:35:49 +08:00
refa: video progress indicator
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -63,6 +63,7 @@ class VideoCardH extends StatelessWidget {
|
||||
title: videoItem.title,
|
||||
cover: videoItem.cover,
|
||||
);
|
||||
final colorScheme = ColorScheme.of(context);
|
||||
return Material(
|
||||
type: MaterialType.transparency,
|
||||
child: Stack(
|
||||
@@ -166,8 +167,11 @@ class VideoCardH extends StatelessWidget {
|
||||
left: 0,
|
||||
bottom: 0,
|
||||
right: 0,
|
||||
child: videoProgressIndicator(
|
||||
progress == -1
|
||||
child: VideoProgressIndicator(
|
||||
color: colorScheme.primary,
|
||||
backgroundColor:
|
||||
colorScheme.secondaryContainer,
|
||||
progress: progress == -1
|
||||
? 1
|
||||
: progress / videoItem.duration,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user