Compare commits

..

8 Commits

Author SHA1 Message Date
9e8e8f73c2 Merge branch 'main' into fix-pip 2024-03-31 00:11:25 +08:00
fd54915399 fix: 历史记录进度条 2024-03-30 22:30:18 +08:00
157726c4c6 Merge branch 'feature-subscription' 2024-03-30 22:25:56 +08:00
25272d6d1b Merge branch 'feature-historyProgress' 2024-03-30 22:25:30 +08:00
af1163f6e0 fix: 历史记录进度条 2024-03-30 22:17:37 +08:00
6c2eab86e9 fix: 视频标题展开 2024-03-30 00:09:31 +08:00
d806de7d8f feat: 播放记录进度条展示 2024-03-30 00:09:31 +08:00
7902cef80f Merge branch 'main' into fix-pip 2024-03-25 22:50:43 +08:00

View File

@ -258,24 +258,27 @@ class HistoryItem extends StatelessWidget {
), ),
), ),
), ),
Positioned( videoItem.progress != 0
? Positioned(
left: 3, left: 3,
right: 3, right: 3,
bottom: 0, bottom: 0,
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
bottomLeft: bottomLeft: Radius.circular(
Radius.circular(StyleString.imgRadius.x), StyleString.imgRadius.x),
bottomRight: bottomRight: Radius.circular(
Radius.circular(StyleString.imgRadius.x), StyleString.imgRadius.x),
), ),
child: LinearProgressIndicator( child: LinearProgressIndicator(
value: videoItem.progress == -1 value: videoItem.progress == -1
? 100 ? 100
: videoItem.progress / videoItem.duration, : videoItem.progress /
videoItem.duration,
), ),
), ),
) )
: const SizedBox()
], ],
), ),
VideoContent(videoItem: videoItem, ctr: ctr) VideoContent(videoItem: videoItem, ctr: ctr)