mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-16 14:29:35 +00:00
123
This commit is contained in:
parent
0a1147caf7
commit
3362a254ff
4 changed files with 251 additions and 211 deletions
15
lib/features/player/providers/abs_status.dart
Normal file
15
lib/features/player/providers/abs_status.dart
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import 'package:just_audio/just_audio.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
import 'package:shelfsdk/audiobookshelf_api.dart';
|
||||
|
||||
part 'abs_status.g.dart';
|
||||
|
||||
@Riverpod(keepAlive: true)
|
||||
class PlayerList extends _$PlayerList {
|
||||
@override
|
||||
List<AudioSource> build() {
|
||||
return [];
|
||||
}
|
||||
|
||||
Future<void> setAudioBook(BookExpanded book, {Duration? position}) async {}
|
||||
}
|
||||
25
lib/features/player/providers/abs_status.g.dart
Normal file
25
lib/features/player/providers/abs_status.g.dart
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'abs_status.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$playerListHash() => r'73efb89a7982cd80259e904d75462feb6c8d3457';
|
||||
|
||||
/// See also [PlayerList].
|
||||
@ProviderFor(PlayerList)
|
||||
final playerListProvider =
|
||||
NotifierProvider<PlayerList, List<AudioSource>>.internal(
|
||||
PlayerList.new,
|
||||
name: r'playerListProvider',
|
||||
debugGetCreateSourceHash:
|
||||
const bool.fromEnvironment('dart.vm.product') ? null : _$playerListHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$PlayerList = Notifier<List<AudioSource>>;
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||
Loading…
Add table
Add a link
Reference in a new issue