提交 1fd236d6 authored 作者: jungleiOS's avatar jungleiOS

修改控制栏默认高度为40

上级 667971cf
...@@ -243,8 +243,8 @@ class _VideoPlayerPageState extends State<VideoPlayerPage> { ...@@ -243,8 +243,8 @@ class _VideoPlayerPageState extends State<VideoPlayerPage> {
padding: padding:
const EdgeInsets.symmetric(vertical: 8, horizontal: 10), const EdgeInsets.symmetric(vertical: 8, horizontal: 10),
///设置控制拦的高度,默认为30,如果图标设置过大但是高度不够就会出现图标被裁剪的现象 ///设置控制拦的高度,默认为40,如果图标设置过大但是高度不够就会出现图标被裁剪的现象
height: 60, height: 40,
progressStyle: VideoProgressStyle( progressStyle: VideoProgressStyle(
playedColor: Colors.blue, playedColor: Colors.blue,
), ),
......
...@@ -6,7 +6,7 @@ const double iconSize = 25; ...@@ -6,7 +6,7 @@ const double iconSize = 25;
/// 底部控制拦样式 /// 底部控制拦样式
class VideoControlBarStyle { class VideoControlBarStyle {
VideoControlBarStyle({ VideoControlBarStyle({
this.height = 36, this.height = 40,
this.margin = const EdgeInsets.all(0), this.margin = const EdgeInsets.all(0),
this.padding = const EdgeInsets.symmetric(vertical: 8, horizontal: 10), this.padding = const EdgeInsets.symmetric(vertical: 8, horizontal: 10),
VideoProgressStyle? progressStyle, //进度条样式 VideoProgressStyle? progressStyle, //进度条样式
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论