From 09fd7d6c4b325a7c9e44e746ed006d7bd08c5b0e Mon Sep 17 00:00:00 2001 From: Feichtmeier Date: Sat, 14 Dec 2024 15:24:43 +0100 Subject: [PATCH] fix: Playback Speed Setting Not Retained Between Sessions Fixes #1092 --- lib/app/view/mobile_bottom_bar.dart | 5 ----- lib/common/data/player_state.dart | 16 +++++++++++++--- lib/constants.dart | 1 + lib/player/player_model.dart | 4 ++-- lib/player/player_service.dart | 5 +++++ lib/player/view/playback_rate_button.dart | 18 ++++++++---------- 6 files changed, 29 insertions(+), 20 deletions(-) diff --git a/lib/app/view/mobile_bottom_bar.dart b/lib/app/view/mobile_bottom_bar.dart index 8cb8573a5..87255d491 100644 --- a/lib/app/view/mobile_bottom_bar.dart +++ b/lib/app/view/mobile_bottom_bar.dart @@ -2,7 +2,6 @@ import 'package:flutter/material.dart'; import 'package:watch_it/watch_it.dart'; import '../../extensions/build_context_x.dart'; -import '../../player/player_model.dart'; import '../../player/view/bottom_player.dart'; import '../app_model.dart'; import 'mobile_navigation_bar.dart'; @@ -21,10 +20,6 @@ class MobileBottomBar extends StatelessWidget with WatchItMixin { mainAxisSize: MainAxisSize.min, children: [ GestureDetector( - onVerticalDragUpdate: (details) { - di().bottomPlayerHeight = - context.mediaQuerySize.height - details.globalPosition.dy; - }, onVerticalDragEnd: (details) { if (details.primaryVelocity != null && details.primaryVelocity! < 150) { diff --git a/lib/common/data/player_state.dart b/lib/common/data/player_state.dart index 5b52b2e12..eb94674cb 100644 --- a/lib/common/data/player_state.dart +++ b/lib/common/data/player_state.dart @@ -11,6 +11,7 @@ class PlayerState { final String? queueName; final List