Compare commits

...

1 Commits

Author SHA1 Message Date
af1163f6e0 fix: 历史记录进度条 2024-03-30 22:17:37 +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)