mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-16 06:19:35 +00:00
123
This commit is contained in:
parent
04fe06d1ac
commit
bd9e985697
13 changed files with 1036 additions and 878 deletions
|
|
@ -466,12 +466,7 @@ class _LibraryItemPlayButton extends HookConsumerWidget {
|
|||
|
||||
return ElevatedButton.icon(
|
||||
onPressed: () {
|
||||
currentBook?.libraryItemId == book.libraryItemId
|
||||
? ref.read(absPlayerProvider).playOrPause()
|
||||
: ref.read(absPlayerProvider.notifier).load(
|
||||
book,
|
||||
initialPosition: userMediaProgress?.currentTime,
|
||||
);
|
||||
ref.read(currentBookProvider.notifier).update(book.libraryItemId);
|
||||
},
|
||||
icon: Hero(
|
||||
tag: HeroTagPrefixes.libraryItemPlayButton + book.libraryItemId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue