From 5d80fa85ad6e2819c8cf2c2ffea614e53c5f736a Mon Sep 17 00:00:00 2001 From: Frederik Feichtmeier Date: Thu, 28 Nov 2024 17:01:38 +0100 Subject: [PATCH] fix: remove volume slider for mobile (#1064) --- lib/player/view/bottom_player.dart | 2 +- lib/player/view/full_height_player_top_controls.dart | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/player/view/bottom_player.dart b/lib/player/view/bottom_player.dart index e974f9399..e060386b5 100644 --- a/lib/player/view/bottom_player.dart +++ b/lib/player/view/bottom_player.dart @@ -106,7 +106,7 @@ class BottomPlayer extends StatelessWidget with WatchItMixin { children: [ if (audio?.audioType == AudioType.podcast) PlaybackRateButton(active: active), - const VolumeSliderPopup(), + if (!isMobile) const VolumeSliderPopup(), if (showQueueButton) const QueueButton(), IconButton( tooltip: context.l10n.fullWindow, diff --git a/lib/player/view/full_height_player_top_controls.dart b/lib/player/view/full_height_player_top_controls.dart index 9f6db6c64..93c818b30 100644 --- a/lib/player/view/full_height_player_top_controls.dart +++ b/lib/player/view/full_height_player_top_controls.dart @@ -2,6 +2,7 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:watch_it/watch_it.dart'; +import 'package:yaru/theme.dart'; import '../../app/app_model.dart'; import '../../app/connectivity_model.dart'; @@ -90,7 +91,7 @@ class FullHeightPlayerTopControls extends StatelessWidget with WatchItMixin { active: active, color: iconColor, ), - VolumeSliderPopup(color: iconColor), + if (!isMobile) VolumeSliderPopup(color: iconColor), IconButton( tooltip: playerPosition == PlayerPosition.fullWindow ? context.l10n.leaveFullWindow