refa: video progress indicator

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-18 22:21:48 +08:00
parent f5657d2d4c
commit 395893fc7d
7 changed files with 193 additions and 35 deletions

View File

@@ -224,8 +224,11 @@ class DetailItem extends StatelessWidget {
child: Stack(
clipBehavior: Clip.none,
children: [
videoProgressIndicator(
progress / entry.totalTimeMilli,
VideoProgressIndicator(
color: theme.colorScheme.primary,
backgroundColor:
theme.colorScheme.secondaryContainer,
progress: progress / entry.totalTimeMilli,
),
PBadge(
text: progress >= entry.totalTimeMilli - 400