提交 7a87147e authored 作者: jungleiOS's avatar jungleiOS

播放器控制栏按钮默认尺寸调整 倍速按钮默认字号调整

上级 1fb93802
......@@ -272,53 +272,53 @@ class _VideoPlayerPageState extends State<VideoPlayerPage> {
color: Colors.white, size: 25),
/// 更改进度栏的暂停按钮
pauseIcon: const Icon(
Icons.pause,
color: Colors.white,
size: 25,
),
// pauseIcon: const Icon(
// Icons.pause,
// color: Colors.white,
// size: 25,
// ),
/// 更改进度栏的快退按钮
rewindIcon: const Icon(
Icons.replay_30,
size: 25,
color: Colors.white,
),
// rewindIcon: const Icon(
// Icons.replay_30,
// size: 25,
// color: Colors.white,
// ),
/// 更改进度栏的快进按钮
forwardIcon: const Icon(
Icons.forward_30,
size: 25,
color: Colors.white,
),
// forwardIcon: const Icon(
// Icons.forward_30,
// size: 25,
// color: Colors.white,
// ),
/// 更改进度栏的全屏按钮
fullscreenIcon: const Icon(
Icons.fullscreen,
size: 25,
color: Colors.white,
),
// fullscreenIcon: const Icon(
// Icons.fullscreen,
// size: 25,
// color: Colors.white,
// ),
/// 更改进度栏的退出全屏按钮
fullscreenExitIcon: const Icon(
Icons.fullscreen_exit,
size: 25,
color: Colors.white,
),
// fullscreenExitIcon: const Icon(
// Icons.fullscreen_exit,
// size: 25,
// color: Colors.white,
// ),
/// 决定控制栏的元素以及排序,示例见上方图3
itemList: [
"rewind",
"play",
"forward",
"position-time", //当前播放时间
"progress", //线条形进度条(与‘basic-progress’二选一)
// "basic-progress",//矩形进度条(与‘progress’二选一)
"duration-time", //视频总时长
// "time",//格式:当前时间/视频总时长
'speed',
"fullscreen"
],
// itemList: [
// "rewind",
// "play",
// "forward",
// "position-time", //当前播放时间
// "progress", //线条形进度条(与‘basic-progress’二选一)
// // "basic-progress",//矩形进度条(与‘progress’二选一)
// "duration-time", //视频总时长
// // "time",//格式:当前时间/视频总时长
// 'speed',
// "fullscreen"
// ],
),
/// 自定义字幕
......
import 'package:flutter/material.dart';
import 'package:gz_video_player/video_progress_style.dart';
const double iconSize = 18;
const double iconSize = 25;
/// 底部控制拦样式
class VideoControlBarStyle {
......
......@@ -36,7 +36,7 @@ class VideoSpeedButtonStyle {
VideoSpeedButtonStyle({
this.title = '倍速',
this.textStyle = const TextStyle(
fontSize: 11.0,
fontSize: 14.0,
fontWeight: FontWeight.normal,
color: Colors.white,
),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论