mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-04-22 14:19:36 +00:00
111
This commit is contained in:
parent
36f14dbd58
commit
5abf938dcf
26 changed files with 104 additions and 70 deletions
|
|
@ -467,8 +467,8 @@ class _LibraryItemPlayButton extends HookConsumerWidget {
|
|||
return ElevatedButton.icon(
|
||||
onPressed: () {
|
||||
currentBook?.libraryItemId == book.libraryItemId
|
||||
? ref.read(audioPlayerProvider).playOrPause()
|
||||
: ref.read(audioPlayerProvider.notifier).load(
|
||||
? ref.read(absPlayerProvider).playOrPause()
|
||||
: ref.read(absPlayerProvider.notifier).load(
|
||||
book,
|
||||
initialPosition: userMediaProgress?.currentTime,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue