mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-01-05 17:59:32 +00:00
basic audiobook player
This commit is contained in:
parent
097caf8ec2
commit
610d9a2aa0
26 changed files with 458 additions and 110 deletions
18
lib/features/player/playlist_provider.dart
Normal file
18
lib/features/player/playlist_provider.dart
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
import 'package:shelfsdk/audiobookshelf_api.dart';
|
||||
import 'package:whispering_pages/features/player/playlist.dart';
|
||||
|
||||
part 'playlist_provider.g.dart';
|
||||
|
||||
@riverpod
|
||||
class Playlist extends _$Playlist {
|
||||
@override
|
||||
AudiobookPlaylist build() {
|
||||
return AudiobookPlaylist();
|
||||
}
|
||||
|
||||
void add(BookExpanded item) {
|
||||
state.add(item);
|
||||
ref.notifyListeners();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue