*感谢这个插件*
您能否添加一个功能,我们可以通过该功能隐藏播放器控件中的全屏按钮?
这已经可以通过给 YoutubePlayer 一个新的bottomActions列表来实现,并且不包括FullScreenButton:
YoutubePlayer(
controller: _controller,
showVideoProgressIndicator: true,
bottomActions: <Widget>[
const SizedBox(width: 14.0),
CurrentPosition(),
const SizedBox(width: 8.0),
ProgressBar(isExpanded: true),
RemainingDuration(),
const PlaybackSpeedButton(),
],
);
希望这就是你所追求的!
是的,成功了,谢谢
最有用的评论
这已经可以通过给 YoutubePlayer 一个新的bottomActions列表来实现,并且不包括FullScreenButton:
YoutubePlayer( controller: _controller, showVideoProgressIndicator: true, bottomActions: <Widget>[ const SizedBox(width: 14.0), CurrentPosition(), const SizedBox(width: 8.0), ProgressBar(isExpanded: true), RemainingDuration(), const PlaybackSpeedButton(), ], );
希望这就是你所追求的!