mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-24 03:49:30 +00:00
progress visibility on item page
This commit is contained in:
parent
be7f5daa88
commit
865a662b56
21 changed files with 1009 additions and 765 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
import 'package:shelfsdk/audiobookshelf_api.dart';
|
||||
import 'package:whispering_pages/features/player/providers/audiobook_player.dart';
|
||||
import 'package:whispering_pages/shared/extensions/model_conversions.dart';
|
||||
|
||||
part 'currently_playing_provider.g.dart';
|
||||
|
||||
|
|
@ -26,7 +27,7 @@ BookChapter? currentPlayingChapter(CurrentPlayingChapterRef ref) {
|
|||
BookMetadataExpanded? currentBookMetadata(CurrentBookMetadataRef ref) {
|
||||
final player = ref.watch(audiobookPlayerProvider);
|
||||
if (player.book == null) return null;
|
||||
return BookMetadataExpanded.fromJson(player.book!.metadata.toJson());
|
||||
return player.book!.metadata.asBookMetadataExpanded;
|
||||
}
|
||||
|
||||
// /// volume of the player [0, 1]
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ final currentPlayingChapterProvider =
|
|||
|
||||
typedef CurrentPlayingChapterRef = AutoDisposeProviderRef<BookChapter?>;
|
||||
String _$currentBookMetadataHash() =>
|
||||
r'02b462a051fce5bcbdad6fdb708b60256fbb588c';
|
||||
r'9088debba151894b61f2dcba1bba12a89244b9b1';
|
||||
|
||||
/// provides the book metadata of the currently playing book
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue