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
left: 3, ? Positioned(
right: 3, left: 3,
bottom: 0, right: 3,
child: ClipRRect( bottom: 0,
borderRadius: BorderRadius.only( child: ClipRRect(
bottomLeft: borderRadius: BorderRadius.only(
Radius.circular(StyleString.imgRadius.x), bottomLeft: Radius.circular(
bottomRight: StyleString.imgRadius.x),
Radius.circular(StyleString.imgRadius.x), bottomRight: Radius.circular(
), StyleString.imgRadius.x),
child: LinearProgressIndicator( ),
value: videoItem.progress == -1 child: LinearProgressIndicator(
? 100 value: videoItem.progress == -1
: videoItem.progress / videoItem.duration, ? 100
), : videoItem.progress /
), videoItem.duration,
) ),
),
)
: const SizedBox()
], ],
), ),
VideoContent(videoItem: videoItem, ctr: ctr) VideoContent(videoItem: videoItem, ctr: ctr)