mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Tweak mute icon in video player
This commit is contained in:
parent
22fd922125
commit
34ee7bbe19
1 changed files with 11 additions and 4 deletions
|
@ -224,10 +224,17 @@ class _VideoViewerState extends State<VideoViewer>
|
|||
onTap: _onVolumnPressed,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(4),
|
||||
child: Icon(
|
||||
_controller.value.volume == 0
|
||||
? Icons.volume_mute_outlined
|
||||
: Icons.volume_up,
|
||||
child: AnimatedSwitcher(
|
||||
duration: k.animationDurationNormal,
|
||||
child: _controller.value.volume == 0
|
||||
? const Icon(
|
||||
Icons.volume_off_outlined,
|
||||
key: Key("mute_on"),
|
||||
)
|
||||
: const Icon(
|
||||
Icons.volume_up_outlined,
|
||||
key: Key("mute_off"),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue