Skip to content

Commit

Permalink
Merge branch 'feature-historyProgress'
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhigq committed Mar 27, 2024
2 parents 7d7df17 + fb3be84 commit 9845f03
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion lib/pages/history/widgets/item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class HistoryItem extends StatelessWidget {
? '已看完'
: '${Utils.timeFormat(videoItem.progress!)}/${Utils.timeFormat(videoItem.duration!)}',
right: 6.0,
bottom: 6.0,
bottom: 8.0,
type: 'gray',
),
// 右上角
Expand Down Expand Up @@ -258,6 +258,24 @@ class HistoryItem extends StatelessWidget {
),
),
),
Positioned(
left: 3,
right: 3,
bottom: 0,
child: ClipRRect(
borderRadius: BorderRadius.only(
bottomLeft:
Radius.circular(StyleString.imgRadius.x),
bottomRight:
Radius.circular(StyleString.imgRadius.x),
),
child: LinearProgressIndicator(
value: videoItem.progress == -1
? 100
: videoItem.progress / videoItem.duration,
),
),
)
],
),
VideoContent(videoItem: videoItem, ctr: ctr)
Expand Down

0 comments on commit 9845f03

Please sign in to comment.