mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-14 15:09:29 +00:00
Refactor chapter seeking logic in AudiobookPlayerSeekChapterButton
This commit is contained in:
parent
aefe5299ca
commit
73e8f4bfa6
7 changed files with 217 additions and 96 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue