Skip to content

Commit cafa5cf

Browse files
authored
Merge pull request #896 from mpoimer/bugfix/mute-on-desktop
Fixed allowMute being ignored on Desktop
2 parents 483e22b + 2aca16e commit cafa5cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/material/material_desktop_controls.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ class _MaterialDesktopControlsState extends State<MaterialDesktopControls>
291291
child: Row(
292292
children: <Widget>[
293293
_buildPlayPause(controller),
294-
_buildMuteButton(controller),
294+
if (chewieController.allowMuting)
295+
_buildMuteButton(controller),
295296
if (chewieController.isLive)
296297
const Expanded(child: Text('LIVE'))
297298
else

0 commit comments

Comments
 (0)