Youtube_player_flutter: How hide disable fullscreen button

Created on 22 Sep 2020  路  5Comments  路  Source: sarbagyastha/youtube_player_flutter

There is a function to hide the full screen button ?

bug

Most helpful comment

@matamune94 Add bottom actions and remove full screen button from there, Here is the code.

YoutubePlayer(
controller: _controller,
bottomActions: [
  const SizedBox(width: 14.0),
  CurrentPosition(),
  const SizedBox(width: 8.0),
  ProgressBar(),
  RemainingDuration(),
  const PlaybackSpeedButton(),
]
),

All 5 comments

@matamune94 Add bottom actions and remove full screen button from there, Here is the code.

YoutubePlayer(
controller: _controller,
bottomActions: [
  const SizedBox(width: 14.0),
  CurrentPosition(),
  const SizedBox(width: 8.0),
  ProgressBar(),
  RemainingDuration(),
  const PlaybackSpeedButton(),
]
),

Thanks so much, I have one more problem, when I use _controller.load (id) to load another video, the thumbnail of the previous video will appear again, then the next video will load. how can fix?

@matamune94 I have no idea about that, I only load one video at a time. you can open a new issue for that.

@matamune94 I have no idea about that, I only load one video at a time. you can open a new issue for that.
thanks, i will.

@matamune94 Add bottom actions and remove full screen button from there, Here is the code.

YoutubePlayer(
controller: _controller,
bottomActions: [
  const SizedBox(width: 14.0),
  CurrentPosition(),
  const SizedBox(width: 8.0),
  ProgressBar(),
  RemainingDuration(),
  const PlaybackSpeedButton(),
]
),

In my case, I need to add isExpanded: true inside ProgressBar widget.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rebeccalee-ysd picture rebeccalee-ysd  路  3Comments

mohadel92 picture mohadel92  路  3Comments

kulture-rob-snider picture kulture-rob-snider  路  5Comments

channdara picture channdara  路  4Comments

madhu-1stmain picture madhu-1stmain  路  5Comments