Skip to content

Commit

Permalink
fix: remove volume slider for mobile (#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier authored Nov 28, 2024
1 parent 4abc7b9 commit 5d80fa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/player/view/bottom_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion lib/player/view/full_height_player_top_controls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5d80fa8

Please sign in to comment.