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

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

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