提交 4f5e1ae4 authored 作者: kongdywang's avatar kongdywang

fix video slider ui error

上级 221bb72f
...@@ -69,7 +69,8 @@ class _VideoBottomViewState extends State<VideoBottomView> { ...@@ -69,7 +69,8 @@ class _VideoBottomViewState extends State<VideoBottomView> {
child: null != showedKeyFrameInfo child: null != showedKeyFrameInfo
? Container( ? Container(
decoration: const BoxDecoration( decoration: const BoxDecoration(
color: Color(ColorResource.COLOR_TRANS_BLACK), borderRadius: BorderRadius.all(Radius.circular(50))), color: Color(ColorResource.COLOR_TRANS_BLACK),
borderRadius: BorderRadius.all(Radius.circular(50))),
padding: const EdgeInsets.only(left: 10, right: 10, top: 5, bottom: 5), padding: const EdgeInsets.only(left: 10, right: 10, top: 5, bottom: 5),
child: Text( child: Text(
"${Utils.formattedTime(showedKeyFrameInfo!.time)} ${showedKeyFrameInfo!.content}", "${Utils.formattedTime(showedKeyFrameInfo!.time)} ${showedKeyFrameInfo!.content}",
...@@ -82,14 +83,18 @@ class _VideoBottomViewState extends State<VideoBottomView> { ...@@ -82,14 +83,18 @@ class _VideoBottomViewState extends State<VideoBottomView> {
Container( Container(
decoration: const BoxDecoration( decoration: const BoxDecoration(
image: DecorationImage( image: DecorationImage(
image: AssetImage("images/superplayer_bottom_shadow.png", package: StringResource.PKG_NAME), fit: BoxFit.fill)), image: AssetImage("images/superplayer_bottom_shadow.png", package: StringResource.PKG_NAME),
fit: BoxFit.fill)),
padding: const EdgeInsets.only(left: 6, right: 6), padding: const EdgeInsets.only(left: 6, right: 6),
child: Row( child: Row(
children: [ children: [
_getPlayImage(), _getPlayImage(),
Text( SizedBox(
_buildTextString(_currentDuration), width: 35,
style: const TextStyle(fontSize: 12, color: Colors.white), child: Text(
_buildTextString(_currentDuration),
style: const TextStyle(fontSize: 12, color: Colors.white),
),
), ),
_getSlider(), _getSlider(),
Text( Text(
...@@ -219,7 +224,7 @@ class _VideoBottomViewState extends State<VideoBottomView> { ...@@ -219,7 +224,7 @@ class _VideoBottomViewState extends State<VideoBottomView> {
_currentDuration = duration; _currentDuration = duration;
_videoDuration = videoDuration; _videoDuration = videoDuration;
_bufferedDuration = bufferedDration; _bufferedDuration = bufferedDration;
if(_bufferedDuration > _videoDuration) { if (_bufferedDuration > _videoDuration) {
_bufferedDuration = _videoDuration; _bufferedDuration = _videoDuration;
} }
}); });
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论