提交 52efcef6 authored 作者: jungleiOS's avatar jungleiOS

修改速度按钮默认fontsize 和 speedItem 的padding

上级 7da6cc5a
......@@ -73,7 +73,7 @@ class _MyAppState extends State<MyApp> {
videoUrl != ""
? GZVideoPlayer(
dataSource: videoUrl,
sourceType: DataSourceType.asset,
sourceType: DataSourceType.network,
/// 视频播放配置
playOptions: VideoPlayOptions(
seekSeconds: 30,
......
......@@ -18,7 +18,7 @@ class VideoSpeedItemStyle {
VideoSpeedItemStyle({
Color? backgroundColor,
this.itemSize = const Size(45, 30),
this.padding = const EdgeInsets.symmetric(vertical: 2.0, horizontal: 2.0),
this.padding = const EdgeInsets.symmetric(vertical: 2.0, horizontal: 4.0),
this.margin = EdgeInsets.zero,
this.radius = const BorderRadius.all(Radius.circular(8.0)),
this.textStyle = const TextStyle(
......@@ -36,7 +36,7 @@ class VideoSpeedButtonStyle {
VideoSpeedButtonStyle({
this.title = '倍数',
this.textStyle = const TextStyle(
fontSize: 14.0,
fontSize: 11.0,
fontWeight: FontWeight.normal,
color: Colors.white,
),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论