Refactor chapter seeking logic in AudiobookPlayerSeekChapterButton

This commit is contained in:
Dr-Blank 2024-05-21 10:50:02 -04:00
parent aefe5299ca
commit 73e8f4bfa6
No known key found for this signature in database
GPG key ID: 7452CC63F210A266
7 changed files with 217 additions and 96 deletions

View file

@ -304,10 +304,10 @@ class LibraryItemActions extends HookConsumerWidget {
ref
.read(appSettingsProvider)
.playerSettings
.preferredVolume,
.preferredDefaultVolume,
);
// toggle play/pause
player.togglePlayPause();
await player.play();
},
icon: const Icon(Icons.play_arrow_rounded),
label: const Text('Play/Resume'),