mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-26 04:49:31 +00:00
11 lines
394 B
Dart
11 lines
394 B
Dart
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
import 'package:shelfsdk/audiobookshelf_api.dart';
|
|
import 'package:whispering_pages/features/player/providers/audiobook_player.dart';
|
|
|
|
part 'currently_playing_provider.g.dart';
|
|
|
|
@riverpod
|
|
BookExpanded? currentlyPlayingBook(CurrentlyPlayingBookRef ref) {
|
|
final player = ref.watch(audiobookPlayerProvider);
|
|
return player.book;
|
|
}
|