This commit is contained in:
rang 2025-12-20 22:48:09 +08:00
parent 0a1147caf7
commit 3362a254ff
4 changed files with 251 additions and 211 deletions

View 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 {}
}

View 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