mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-04-20 05:09:37 +00:00
chore: 优化进度条显示
This commit is contained in:
parent
03cec3f4b6
commit
d96995a863
27 changed files with 1229 additions and 1311 deletions
|
|
@ -11,7 +11,7 @@ import 'package:vaani/shared/extensions/obfuscation.dart';
|
||||||
|
|
||||||
part 'authenticated_users_provider.g.dart';
|
part 'authenticated_users_provider.g.dart';
|
||||||
|
|
||||||
final _box = AvailableHiveBoxes.authenticatedUserBox;
|
final _box = HiveBoxes.authenticatedUserBox;
|
||||||
|
|
||||||
final _logger = Logger('authenticated_users_provider');
|
final _logger = Logger('authenticated_users_provider');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import 'package:vaani/shared/extensions/obfuscation.dart';
|
||||||
|
|
||||||
part 'server_provider.g.dart';
|
part 'server_provider.g.dart';
|
||||||
|
|
||||||
final _box = AvailableHiveBoxes.serverBox;
|
final _box = HiveBoxes.serverBox;
|
||||||
|
|
||||||
final _logger = Logger('AudiobookShelfServerProvider');
|
final _logger = Logger('AudiobookShelfServerProvider');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,48 +4,34 @@ import 'package:vaani/features/per_book_settings/models/book_settings.dart';
|
||||||
import 'package:vaani/features/settings/models/models.dart';
|
import 'package:vaani/features/settings/models/models.dart';
|
||||||
|
|
||||||
@immutable
|
@immutable
|
||||||
class AvailableHiveBoxes {
|
class HiveBoxes {
|
||||||
const AvailableHiveBoxes._();
|
const HiveBoxes._();
|
||||||
|
static late final Box<dynamic> basicBox;
|
||||||
static Future<void> init() async {
|
|
||||||
await Hive.openBox('basicTypes');
|
|
||||||
|
|
||||||
/// Box for storing user preferences as [AppSettings]
|
|
||||||
await Hive.openBox<AppSettings>('userPrefs');
|
|
||||||
|
|
||||||
/// Box for storing [ApiSettings]
|
|
||||||
await Hive.openBox<ApiSettings>('apiSettings');
|
|
||||||
|
|
||||||
/// stores the a list of [AudiobookShelfServer]
|
|
||||||
|
|
||||||
await Hive.openBox<AudiobookShelfServer>('audiobookShelfServer');
|
|
||||||
|
|
||||||
/// stores the a list of [AuthenticatedUser]
|
|
||||||
|
|
||||||
await Hive.openBox<AuthenticatedUser>('authenticatedUser');
|
|
||||||
|
|
||||||
/// stores the a list of [BookSettings]
|
|
||||||
|
|
||||||
await Hive.openBox<BookSettings>('bookSettings');
|
|
||||||
}
|
|
||||||
|
|
||||||
static final basicBox = Hive.box('basicTypes');
|
|
||||||
|
|
||||||
/// Box for storing user preferences as [AppSettings]
|
/// Box for storing user preferences as [AppSettings]
|
||||||
static final userPrefsBox = Hive.box<AppSettings>('userPrefs');
|
static late final Box<AppSettings> userPrefsBox;
|
||||||
|
|
||||||
/// Box for storing [ApiSettings]
|
/// Box for storing [ApiSettings]
|
||||||
static final apiSettingsBox = Hive.box<ApiSettings>('apiSettings');
|
static late final Box<ApiSettings> apiSettingsBox;
|
||||||
|
|
||||||
/// stores the a list of [AudiobookShelfServer]
|
/// stores the a list of [AudiobookShelfServer]
|
||||||
static final serverBox =
|
static late final Box<AudiobookShelfServer> serverBox;
|
||||||
Hive.box<AudiobookShelfServer>('audiobookShelfServer');
|
|
||||||
|
|
||||||
/// stores the a list of [AuthenticatedUser]
|
/// stores the a list of [AuthenticatedUser]
|
||||||
static final authenticatedUserBox =
|
static late final Box<AuthenticatedUser> authenticatedUserBox;
|
||||||
Hive.box<AuthenticatedUser>('authenticatedUser');
|
|
||||||
|
|
||||||
/// stores the a list of [BookSettings]
|
/// stores the a list of [BookSettings]
|
||||||
static final individualBookSettingsBox =
|
static late final Box<BookSettings> individualBookSettingsBox;
|
||||||
Hive.box<BookSettings>('bookSettings');
|
|
||||||
|
static Future<void> init() async {
|
||||||
|
basicBox = await Hive.openBox('basicTypes');
|
||||||
|
userPrefsBox = await Hive.openBox<AppSettings>('userPrefs');
|
||||||
|
apiSettingsBox = await Hive.openBox<ApiSettings>('apiSettings');
|
||||||
|
serverBox =
|
||||||
|
await Hive.openBox<AudiobookShelfServer>('audiobookShelfServer');
|
||||||
|
authenticatedUserBox =
|
||||||
|
await Hive.openBox<AuthenticatedUser>('authenticatedUser');
|
||||||
|
individualBookSettingsBox =
|
||||||
|
await Hive.openBox<BookSettings>('bookSettings');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,6 @@ Future initStorage() async {
|
||||||
// Hive.defaultDirectory = appDocumentsDir.path;
|
// Hive.defaultDirectory = appDocumentsDir.path;
|
||||||
// appLogger.config('Hive storage directory init: ${Hive.defaultDirectory}');
|
// appLogger.config('Hive storage directory init: ${Hive.defaultDirectory}');
|
||||||
|
|
||||||
await registerModels();
|
registerModels();
|
||||||
await AvailableHiveBoxes.init();
|
await HiveBoxes.init();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import 'package:vaani/features/per_book_settings/models/book_settings.dart';
|
||||||
import 'package:vaani/features/settings/models/models.dart';
|
import 'package:vaani/features/settings/models/models.dart';
|
||||||
|
|
||||||
// register all models to Hive for serialization
|
// register all models to Hive for serialization
|
||||||
Future registerModels() async {
|
void registerModels() {
|
||||||
Hive.registerAdapter(
|
Hive.registerAdapter(
|
||||||
JsonAdapter<AppSettings>(
|
JsonAdapter<AppSettings>(
|
||||||
id: 1,
|
id: 1,
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import 'package:vaani/features/per_book_settings/models/nullable_player_settings
|
||||||
|
|
||||||
part 'book_settings_provider.g.dart';
|
part 'book_settings_provider.g.dart';
|
||||||
|
|
||||||
final _box = AvailableHiveBoxes.individualBookSettingsBox;
|
final _box = HiveBoxes.individualBookSettingsBox;
|
||||||
|
|
||||||
final _logger = Logger('BookSettingsProvider');
|
final _logger = Logger('BookSettingsProvider');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
import 'package:just_audio/just_audio.dart';
|
import 'package:just_audio/just_audio.dart';
|
||||||
import 'package:just_audio_background/just_audio_background.dart';
|
import 'package:just_audio_background/just_audio_background.dart';
|
||||||
import 'package:logging/logging.dart';
|
import 'package:logging/logging.dart';
|
||||||
|
|
@ -18,8 +19,9 @@ final offset = Duration(milliseconds: 10);
|
||||||
final _logger = Logger('AbsAudioPlayer');
|
final _logger = Logger('AbsAudioPlayer');
|
||||||
|
|
||||||
class AbsAudioPlayer {
|
class AbsAudioPlayer {
|
||||||
|
final Ref ref;
|
||||||
late final AudioPlayer _player;
|
late final AudioPlayer _player;
|
||||||
AbsAudioPlayer(AudioPlayer player) : _player = player {
|
AbsAudioPlayer(AudioPlayer player, this.ref) : _player = player {
|
||||||
_player.positionStream.listen((position) {
|
_player.positionStream.listen((position) {
|
||||||
final chapter = currentChapter;
|
final chapter = currentChapter;
|
||||||
if (positionInBook <= (chapter?.start ?? Duration.zero) ||
|
if (positionInBook <= (chapter?.start ?? Duration.zero) ||
|
||||||
|
|
@ -53,34 +55,23 @@ class AbsAudioPlayer {
|
||||||
List<Uri>? downloadedUris,
|
List<Uri>? downloadedUris,
|
||||||
Duration? start,
|
Duration? start,
|
||||||
Duration? end,
|
Duration? end,
|
||||||
|
bool force = false,
|
||||||
}) async {
|
}) async {
|
||||||
if (_bookStreamController.nvalue == book) {
|
if (!force && _bookStreamController.nvalue == book) {
|
||||||
_logger.info('Book is the same, doing nothing');
|
_logger.info('Book is the same, doing nothing');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_bookStreamController.add(book);
|
_bookStreamController.add(book);
|
||||||
final appSettings = loadOrCreateAppSettings();
|
|
||||||
|
|
||||||
final currentTrack = book.findTrackAtTime(initialPosition ?? Duration.zero);
|
final currentTrack = book.findTrackAtTime(initialPosition ?? Duration.zero);
|
||||||
final indexTrack = book.tracks.indexOf(currentTrack);
|
final indexTrack = book.tracks.indexOf(currentTrack);
|
||||||
final positionInTrack = initialPosition != null
|
final positionInTrack = initialPosition != null
|
||||||
? initialPosition - currentTrack.startOffset
|
? initialPosition - currentTrack.startOffset
|
||||||
: null;
|
: null;
|
||||||
final title = appSettings.notificationSettings.primaryTitle
|
|
||||||
.formatNotificationTitle(book);
|
|
||||||
final artist = appSettings.notificationSettings.secondaryTitle
|
|
||||||
.formatNotificationTitle(book);
|
|
||||||
chapterStreamController
|
chapterStreamController
|
||||||
.add(book.findChapterAtTime(initialPosition ?? Duration.zero));
|
.add(book.findChapterAtTime(initialPosition ?? Duration.zero));
|
||||||
// final item = MediaItem(
|
final title = primaryTitle();
|
||||||
// id: book.libraryItemId,
|
final artist = secondaryTitle();
|
||||||
// title: title,
|
|
||||||
// artist: artist,
|
|
||||||
// duration: currentChapter?.duration ?? book.duration,
|
|
||||||
// artUri: Uri.parse(
|
|
||||||
// '$baseUrl/api/items/${book.libraryItemId}/cover?token=$token',
|
|
||||||
// ),
|
|
||||||
// );
|
|
||||||
|
|
||||||
mediaItem(track) => MediaItem(
|
mediaItem(track) => MediaItem(
|
||||||
id: book.libraryItemId + track.index.toString(),
|
id: book.libraryItemId + track.index.toString(),
|
||||||
|
|
@ -91,6 +82,13 @@ class AbsAudioPlayer {
|
||||||
'$baseUrl/api/items/${book.libraryItemId}/cover?token=$token',
|
'$baseUrl/api/items/${book.libraryItemId}/cover?token=$token',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
if (start != null && start > Duration.zero ||
|
||||||
|
end != null && end > Duration.zero) {
|
||||||
|
_logger.info(
|
||||||
|
'Skip the opening ${start?.inSeconds} seconds, end ${end?.inSeconds} seconds',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
List<AudioSource> audioSources = start != null && start > Duration.zero ||
|
List<AudioSource> audioSources = start != null && start > Duration.zero ||
|
||||||
end != null && end > Duration.zero
|
end != null && end > Duration.zero
|
||||||
? book.tracks
|
? book.tracks
|
||||||
|
|
@ -270,6 +268,26 @@ class AbsAudioPlayer {
|
||||||
_bookStreamController.close();
|
_bookStreamController.close();
|
||||||
chapterStreamController.close();
|
chapterStreamController.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String primaryTitle() {
|
||||||
|
final appSettings = ref.read(appSettingsProvider);
|
||||||
|
final currentBook = book;
|
||||||
|
if (currentBook != null) {
|
||||||
|
return appSettings.notificationSettings.primaryTitle
|
||||||
|
.formatNotificationTitle(currentBook, chapter: currentChapter);
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
String secondaryTitle() {
|
||||||
|
final appSettings = ref.read(appSettingsProvider);
|
||||||
|
final currentBook = book;
|
||||||
|
if (currentBook != null) {
|
||||||
|
return appSettings.notificationSettings.secondaryTitle
|
||||||
|
.formatNotificationTitle(currentBook, chapter: currentChapter);
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Uri _getUri(
|
Uri _getUri(
|
||||||
|
|
@ -328,14 +346,14 @@ extension BookExpandedExtension on BookExpanded {
|
||||||
}
|
}
|
||||||
|
|
||||||
extension FormatNotificationTitle on String {
|
extension FormatNotificationTitle on String {
|
||||||
String formatNotificationTitle(BookExpanded book) {
|
String formatNotificationTitle(BookExpanded book, {BookChapter? chapter}) {
|
||||||
return replaceAllMapped(
|
return replaceAllMapped(
|
||||||
RegExp(r'\$(\w+)'),
|
RegExp(r'\$(\w+)'),
|
||||||
(match) {
|
(match) {
|
||||||
final type = match.group(1);
|
final type = match.group(1);
|
||||||
return NotificationTitleType.values
|
return NotificationTitleType.values
|
||||||
.firstWhere((element) => element.name == type)
|
.firstWhere((element) => element.name == type)
|
||||||
.extractFrom(book) ??
|
.extractFrom(book, chapter: chapter) ??
|
||||||
match.group(0) ??
|
match.group(0) ??
|
||||||
'';
|
'';
|
||||||
},
|
},
|
||||||
|
|
@ -344,13 +362,16 @@ extension FormatNotificationTitle on String {
|
||||||
}
|
}
|
||||||
|
|
||||||
extension NotificationTitleUtils on NotificationTitleType {
|
extension NotificationTitleUtils on NotificationTitleType {
|
||||||
String? extractFrom(BookExpanded book) {
|
String? extractFrom(BookExpanded book, {BookChapter? chapter}) {
|
||||||
var bookMetadataExpanded = book.metadata.asBookMetadataExpanded;
|
var bookMetadataExpanded = book.metadata.asBookMetadataExpanded;
|
||||||
switch (this) {
|
switch (this) {
|
||||||
case NotificationTitleType.bookTitle:
|
case NotificationTitleType.bookTitle:
|
||||||
return bookMetadataExpanded.title;
|
return bookMetadataExpanded.title;
|
||||||
case NotificationTitleType.chapterTitle:
|
case NotificationTitleType.chapterTitle:
|
||||||
// TODO: implement chapter title; depends on https://github.com/Dr-Blank/Vaani/issues/2
|
// TODO: implement chapter title; depends on https://github.com/Dr-Blank/Vaani/issues/2
|
||||||
|
if (chapter != null) {
|
||||||
|
return chapter.title;
|
||||||
|
}
|
||||||
return bookMetadataExpanded.title;
|
return bookMetadataExpanded.title;
|
||||||
case NotificationTitleType.author:
|
case NotificationTitleType.author:
|
||||||
return bookMetadataExpanded.authorName;
|
return bookMetadataExpanded.authorName;
|
||||||
|
|
|
||||||
|
|
@ -2,64 +2,24 @@ import 'package:collection/collection.dart';
|
||||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
import 'package:just_audio/just_audio.dart' as audio;
|
import 'package:just_audio/just_audio.dart' as audio;
|
||||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||||
import 'package:shelfsdk/audiobookshelf_api.dart' as api;
|
import 'package:shelfsdk/audiobookshelf_api.dart' as shelfsdk;
|
||||||
import 'package:vaani/api/api_provider.dart';
|
import 'package:vaani/api/api_provider.dart';
|
||||||
import 'package:vaani/api/library_item_provider.dart';
|
import 'package:vaani/api/library_item_provider.dart';
|
||||||
import 'package:vaani/db/available_boxes.dart';
|
import 'package:vaani/db/available_boxes.dart';
|
||||||
import 'package:vaani/db/cache/cache_key.dart';
|
import 'package:vaani/db/cache/cache_key.dart';
|
||||||
import 'package:vaani/features/downloads/providers/download_manager.dart';
|
import 'package:vaani/features/downloads/providers/download_manager.dart';
|
||||||
import 'package:vaani/features/per_book_settings/providers/book_settings_provider.dart';
|
import 'package:vaani/features/per_book_settings/providers/book_settings_provider.dart';
|
||||||
import 'package:vaani/features/player/core/abs_audio_player.dart'
|
import 'package:vaani/features/player/core/abs_audio_player.dart';
|
||||||
show AbsAudioPlayer;
|
|
||||||
import 'package:vaani/features/settings/app_settings_provider.dart';
|
import 'package:vaani/features/settings/app_settings_provider.dart';
|
||||||
import 'package:vaani/shared/extensions/box.dart';
|
import 'package:vaani/shared/extensions/box.dart';
|
||||||
import 'package:vaani/shared/extensions/model_conversions.dart';
|
import 'package:vaani/shared/extensions/model_conversions.dart';
|
||||||
|
|
||||||
part 'abs_provider.g.dart';
|
part 'abs_provider.g.dart';
|
||||||
|
|
||||||
/// 音频播放器 配置
|
|
||||||
// @Riverpod(keepAlive: true)
|
|
||||||
// Future<AudioHandler> configurePlayer(Ref ref) async {
|
|
||||||
// final player = ref.read(absPlayerProvider);
|
|
||||||
// // for playing audio on windows, linux
|
|
||||||
|
|
||||||
// // for configuring how this app will interact with other audio apps
|
|
||||||
// final session = await AudioSession.instance;
|
|
||||||
// await session.configure(const AudioSessionConfiguration.speech());
|
|
||||||
|
|
||||||
// final audioService = await AudioService.init(
|
|
||||||
// builder: () => AbsAudioHandler(player),
|
|
||||||
// config: const AudioServiceConfig(
|
|
||||||
// androidNotificationChannelId: 'dr.blank.vaani.channel.audio',
|
|
||||||
// androidNotificationChannelName: 'ABSPlayback',
|
|
||||||
// androidNotificationChannelDescription:
|
|
||||||
// 'Needed to control audio from lock screen',
|
|
||||||
// androidNotificationOngoing: false,
|
|
||||||
// androidStopForegroundOnPause: false,
|
|
||||||
// androidNotificationIcon: 'drawable/ic_stat_logo',
|
|
||||||
// preloadArtwork: true,
|
|
||||||
// // fastForwardInterval: Duration(seconds: 20),
|
|
||||||
// // rewindInterval: Duration(seconds: 20),
|
|
||||||
// ),
|
|
||||||
// );
|
|
||||||
|
|
||||||
// _logger.finer('created simple player');
|
|
||||||
// return audioService;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// just_audio 播放器
|
|
||||||
// @Riverpod(keepAlive: true)
|
|
||||||
// core.AbsAudioPlayer audioPlayer(Ref ref) {
|
|
||||||
// final player = AbsPlatformAudioPlayer();
|
|
||||||
// // final player = AbsMpvAudioPlayer();
|
|
||||||
// ref.onDispose(player.dispose);
|
|
||||||
// return player;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// 播放器激活状态
|
// 播放器激活状态
|
||||||
@riverpod
|
@riverpod
|
||||||
bool playerActive(Ref ref) {
|
bool playerActive(Ref ref) {
|
||||||
return false;
|
return ref.watch(currentBookProvider) != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Riverpod(keepAlive: true)
|
@Riverpod(keepAlive: true)
|
||||||
|
|
@ -76,23 +36,23 @@ class AbsPlayer extends _$AbsPlayer {
|
||||||
@override
|
@override
|
||||||
AbsAudioPlayer build() {
|
AbsAudioPlayer build() {
|
||||||
final audioPlayer = ref.watch(simpleAudioPlayerProvider);
|
final audioPlayer = ref.watch(simpleAudioPlayerProvider);
|
||||||
return AbsAudioPlayer(audioPlayer);
|
return AbsAudioPlayer(audioPlayer, ref);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> load(
|
Future<void> load(
|
||||||
api.BookExpanded book, {
|
shelfsdk.BookExpanded book, {
|
||||||
Duration? initialPosition,
|
Duration? initialPosition,
|
||||||
bool play = true,
|
bool play = true,
|
||||||
|
bool force = false,
|
||||||
}) async {
|
}) async {
|
||||||
if (state.book == book || state.book?.libraryItemId == book.libraryItemId) {
|
if (!force &&
|
||||||
|
(state.book == book ||
|
||||||
|
state.book?.libraryItemId == book.libraryItemId)) {
|
||||||
state.playOrPause();
|
state.playOrPause();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final api = ref.read(authenticatedApiProvider);
|
final api = ref.read(authenticatedApiProvider);
|
||||||
|
|
||||||
final downloadManager = ref.read(simpleDownloadManagerProvider);
|
final downloadManager = ref.read(simpleDownloadManagerProvider);
|
||||||
print(downloadManager.basePath);
|
|
||||||
|
|
||||||
final libItem =
|
final libItem =
|
||||||
await ref.read(libraryItemProvider(book.libraryItemId).future);
|
await ref.read(libraryItemProvider(book.libraryItemId).future);
|
||||||
final downloadedUris = await downloadManager.getDownloadedFilesUri(libItem);
|
final downloadedUris = await downloadManager.getDownloadedFilesUri(libItem);
|
||||||
|
|
@ -112,6 +72,7 @@ class AbsPlayer extends _$AbsPlayer {
|
||||||
downloadedUris: downloadedUris,
|
downloadedUris: downloadedUris,
|
||||||
start: bookSettings.playerSettings.skipChapterStart,
|
start: bookSettings.playerSettings.skipChapterStart,
|
||||||
end: bookSettings.playerSettings.skipChapterEnd,
|
end: bookSettings.playerSettings.skipChapterEnd,
|
||||||
|
force: force,
|
||||||
);
|
);
|
||||||
// set the volume
|
// set the volume
|
||||||
await state.setVolume(
|
await state.setVolume(
|
||||||
|
|
@ -131,67 +92,6 @@ class AbsPlayer extends _$AbsPlayer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 音频播放器 riverpod状态
|
|
||||||
// @Riverpod(keepAlive: true)
|
|
||||||
// class AbsPlayer extends _$AbsPlayer {
|
|
||||||
// @override
|
|
||||||
// core.AbsAudioPlayer build() {
|
|
||||||
// final audioPlayer = ref.watch(audioPlayerProvider);
|
|
||||||
// return audioPlayer;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Future<void> load(
|
|
||||||
// api.BookExpanded book, {
|
|
||||||
// Duration? initialPosition,
|
|
||||||
// bool play = true,
|
|
||||||
// }) async {
|
|
||||||
// if (state.book == book || state.book?.libraryItemId == book.libraryItemId) {
|
|
||||||
// state.playOrPause();
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
// final api = ref.read(authenticatedApiProvider);
|
|
||||||
|
|
||||||
// final downloadManager = ref.read(simpleDownloadManagerProvider);
|
|
||||||
// print(downloadManager.basePath);
|
|
||||||
|
|
||||||
// final libItem =
|
|
||||||
// await ref.read(libraryItemProvider(book.libraryItemId).future);
|
|
||||||
// final downloadedUris = await downloadManager.getDownloadedFilesUri(libItem);
|
|
||||||
|
|
||||||
// final bookSettings = ref.read(bookSettingsProvider(book.libraryItemId));
|
|
||||||
// var bookPlayerSettings = bookSettings.playerSettings;
|
|
||||||
// var appPlayerSettings = ref.read(appSettingsProvider).playerSettings;
|
|
||||||
|
|
||||||
// var configurePlayerForEveryBook =
|
|
||||||
// appPlayerSettings.configurePlayerForEveryBook;
|
|
||||||
|
|
||||||
// await state.load(
|
|
||||||
// book,
|
|
||||||
// baseUrl: api.baseUrl,
|
|
||||||
// token: api.token!,
|
|
||||||
// initialPosition: initialPosition,
|
|
||||||
// downloadedUris: downloadedUris,
|
|
||||||
// start: bookSettings.playerSettings.skipChapterStart,
|
|
||||||
// end: bookSettings.playerSettings.skipChapterEnd,
|
|
||||||
// );
|
|
||||||
// // set the volume
|
|
||||||
// await state.setVolume(
|
|
||||||
// configurePlayerForEveryBook
|
|
||||||
// ? bookPlayerSettings.preferredDefaultVolume ??
|
|
||||||
// appPlayerSettings.preferredDefaultVolume
|
|
||||||
// : appPlayerSettings.preferredDefaultVolume,
|
|
||||||
// );
|
|
||||||
// // set the speed
|
|
||||||
// await state.setSpeed(
|
|
||||||
// configurePlayerForEveryBook
|
|
||||||
// ? bookPlayerSettings.preferredDefaultSpeed ??
|
|
||||||
// appPlayerSettings.preferredDefaultSpeed
|
|
||||||
// : appPlayerSettings.preferredDefaultSpeed,
|
|
||||||
// );
|
|
||||||
// if (play) await state.play();
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
@riverpod
|
@riverpod
|
||||||
class PlayerState extends _$PlayerState {
|
class PlayerState extends _$PlayerState {
|
||||||
@override
|
@override
|
||||||
|
|
@ -218,21 +118,24 @@ class PlayerState extends _$PlayerState {
|
||||||
}
|
}
|
||||||
|
|
||||||
@riverpod
|
@riverpod
|
||||||
Future<Duration?> currentTime(Ref ref, String libraryItemId) async {
|
class CurrentTime extends _$CurrentTime {
|
||||||
final me = await ref.watch(meProvider.future);
|
@override
|
||||||
final userProgress = me.mediaProgress
|
Future<shelfsdk.MediaProgress?> build(String libraryItemId) async {
|
||||||
?.firstWhereOrNull((element) => element.libraryItemId == libraryItemId);
|
final me = await ref.watch(meProvider.future);
|
||||||
return userProgress?.currentTime;
|
final userProgress = me.mediaProgress
|
||||||
|
?.firstWhereOrNull((element) => element.libraryItemId == libraryItemId);
|
||||||
|
return userProgress;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@riverpod
|
@riverpod
|
||||||
class CurrentBook extends _$CurrentBook {
|
class CurrentBook extends _$CurrentBook {
|
||||||
@override
|
@override
|
||||||
api.BookExpanded? build() {
|
shelfsdk.BookExpanded? build() {
|
||||||
listenSelf((previous, next) {
|
listenSelf((previous, next) {
|
||||||
if (previous == null && next == null) {
|
if (previous == null && next == null) {
|
||||||
final activeLibraryItemId = AvailableHiveBoxes.basicBox
|
final activeLibraryItemId =
|
||||||
.getAs<String>(CacheKey.activeLibraryItemId);
|
HiveBoxes.basicBox.getAs<String>(CacheKey.activeLibraryItemId);
|
||||||
if (activeLibraryItemId != null) {
|
if (activeLibraryItemId != null) {
|
||||||
update(activeLibraryItemId, play: false);
|
update(activeLibraryItemId, play: false);
|
||||||
}
|
}
|
||||||
|
|
@ -240,31 +143,29 @@ class CurrentBook extends _$CurrentBook {
|
||||||
});
|
});
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
// @override
|
|
||||||
// api.BookExpanded? build() {
|
|
||||||
// final player = ref.read(absPlayerProvider);
|
|
||||||
// player.bookStream.listen((book) {
|
|
||||||
// if (book != state) {
|
|
||||||
// state = book;
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// return player.book;
|
|
||||||
// }
|
|
||||||
|
|
||||||
Future<void> update(String libraryItemId, {bool play = true}) async {
|
Future<void> update(
|
||||||
if (state?.libraryItemId == libraryItemId) {
|
String libraryItemId, {
|
||||||
|
bool play = true,
|
||||||
|
bool force = false,
|
||||||
|
Duration? currentTime,
|
||||||
|
}) async {
|
||||||
|
if (!force && (state?.libraryItemId == libraryItemId)) {
|
||||||
ref.read(absPlayerProvider).playOrPause();
|
ref.read(absPlayerProvider).playOrPause();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final book = await ref.read(libraryItemProvider(libraryItemId).future);
|
final book = await ref.read(libraryItemProvider(libraryItemId).future);
|
||||||
state = book.media.asBookExpanded;
|
state = book.media.asBookExpanded;
|
||||||
final currentTime =
|
final mediaProgress =
|
||||||
await ref.read(currentTimeProvider(libraryItemId).future);
|
await ref.read(currentTimeProvider(libraryItemId).future);
|
||||||
await ref
|
await ref.read(absPlayerProvider.notifier).load(
|
||||||
.read(absPlayerProvider.notifier)
|
state!,
|
||||||
.load(state!, initialPosition: currentTime, play: play);
|
initialPosition: currentTime ?? mediaProgress?.currentTime,
|
||||||
|
play: play,
|
||||||
|
force: force,
|
||||||
|
);
|
||||||
if (play) {
|
if (play) {
|
||||||
AvailableHiveBoxes.basicBox.put(
|
HiveBoxes.basicBox.put(
|
||||||
CacheKey.activeLibraryItemId,
|
CacheKey.activeLibraryItemId,
|
||||||
libraryItemId,
|
libraryItemId,
|
||||||
);
|
);
|
||||||
|
|
@ -275,7 +176,7 @@ class CurrentBook extends _$CurrentBook {
|
||||||
@riverpod
|
@riverpod
|
||||||
class CurrentChapter extends _$CurrentChapter {
|
class CurrentChapter extends _$CurrentChapter {
|
||||||
@override
|
@override
|
||||||
api.BookChapter? build() {
|
shelfsdk.BookChapter? build() {
|
||||||
final player = ref.read(absPlayerProvider);
|
final player = ref.read(absPlayerProvider);
|
||||||
player.chapterStream.listen((chapter) {
|
player.chapterStream.listen((chapter) {
|
||||||
if (chapter != state) {
|
if (chapter != state) {
|
||||||
|
|
@ -286,7 +187,48 @@ class CurrentChapter extends _$CurrentChapter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// 进度条显示
|
||||||
|
// 进度条总时长
|
||||||
@riverpod
|
@riverpod
|
||||||
Stream<Duration> positionChapter(Ref ref) {
|
Duration total(Ref ref) {
|
||||||
return ref.read(absPlayerProvider).positionInChapterStream;
|
final currentBook = ref.watch(currentBookProvider);
|
||||||
|
final currentChapter = ref.watch(currentChapterProvider);
|
||||||
|
final playerSettings =
|
||||||
|
ref.watch(appSettingsProvider.select((v) => v.playerSettings));
|
||||||
|
final showChapterProgress =
|
||||||
|
playerSettings.expandedPlayerSettings.showChapterProgress;
|
||||||
|
return showChapterProgress
|
||||||
|
? ((currentChapter?.end ?? Duration.zero) -
|
||||||
|
(currentChapter?.start ?? Duration.zero))
|
||||||
|
: currentBook?.duration ?? Duration.zero;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 进度条当前时长
|
||||||
|
@riverpod
|
||||||
|
Stream<Duration> progress(Ref ref) {
|
||||||
|
final player = ref.read(absPlayerProvider);
|
||||||
|
final playerSettings =
|
||||||
|
ref.watch(appSettingsProvider.select((v) => v.playerSettings));
|
||||||
|
final showChapterProgress =
|
||||||
|
playerSettings.expandedPlayerSettings.showChapterProgress;
|
||||||
|
return player.positionStream.map((position) {
|
||||||
|
return showChapterProgress
|
||||||
|
? player.getPositionInChapter(position)
|
||||||
|
: player.getPositionInBook(position);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 进度条已加载时长
|
||||||
|
@riverpod
|
||||||
|
Stream<Duration> progressBuffered(Ref ref) {
|
||||||
|
final player = ref.read(absPlayerProvider);
|
||||||
|
final playerSettings =
|
||||||
|
ref.watch(appSettingsProvider.select((v) => v.playerSettings));
|
||||||
|
final showChapterProgress =
|
||||||
|
playerSettings.expandedPlayerSettings.showChapterProgress;
|
||||||
|
return player.bufferedPositionStream.map((position) {
|
||||||
|
return showChapterProgress
|
||||||
|
? player.getPositionInChapter(position)
|
||||||
|
: player.getPositionInBook(position);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,9 @@ part of 'abs_provider.dart';
|
||||||
// RiverpodGenerator
|
// RiverpodGenerator
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
|
|
||||||
String _$playerActiveHash() => r'86831758035aa69d74f42ebde0a19bf7ef830910';
|
String _$playerActiveHash() => r'4d3e7181cf66bfdb46d5caaece56cde07f610cc4';
|
||||||
|
|
||||||
/// 音频播放器 配置
|
/// See also [playerActive].
|
||||||
///
|
|
||||||
/// Copied from [playerActive].
|
|
||||||
@ProviderFor(playerActive)
|
@ProviderFor(playerActive)
|
||||||
final playerActiveProvider = AutoDisposeProvider<bool>.internal(
|
final playerActiveProvider = AutoDisposeProvider<bool>.internal(
|
||||||
playerActive,
|
playerActive,
|
||||||
|
|
@ -41,7 +39,87 @@ final simpleAudioPlayerProvider = Provider<audio.AudioPlayer>.internal(
|
||||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||||
// ignore: unused_element
|
// ignore: unused_element
|
||||||
typedef SimpleAudioPlayerRef = ProviderRef<audio.AudioPlayer>;
|
typedef SimpleAudioPlayerRef = ProviderRef<audio.AudioPlayer>;
|
||||||
String _$currentTimeHash() => r'3e7f99dbf48242a5fa0a4239a0f696535d0b4ac9';
|
String _$totalHash() => r'2d01953862a875f6e66fe3af56868e819e33fcc8';
|
||||||
|
|
||||||
|
/// 进度条显示
|
||||||
|
///
|
||||||
|
/// Copied from [total].
|
||||||
|
@ProviderFor(total)
|
||||||
|
final totalProvider = AutoDisposeProvider<Duration>.internal(
|
||||||
|
total,
|
||||||
|
name: r'totalProvider',
|
||||||
|
debugGetCreateSourceHash:
|
||||||
|
const bool.fromEnvironment('dart.vm.product') ? null : _$totalHash,
|
||||||
|
dependencies: null,
|
||||||
|
allTransitiveDependencies: null,
|
||||||
|
);
|
||||||
|
|
||||||
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||||
|
// ignore: unused_element
|
||||||
|
typedef TotalRef = AutoDisposeProviderRef<Duration>;
|
||||||
|
String _$progressHash() => r'7ed041be2d26a437becc9ab624322b47efbee06e';
|
||||||
|
|
||||||
|
/// See also [progress].
|
||||||
|
@ProviderFor(progress)
|
||||||
|
final progressProvider = AutoDisposeStreamProvider<Duration>.internal(
|
||||||
|
progress,
|
||||||
|
name: r'progressProvider',
|
||||||
|
debugGetCreateSourceHash:
|
||||||
|
const bool.fromEnvironment('dart.vm.product') ? null : _$progressHash,
|
||||||
|
dependencies: null,
|
||||||
|
allTransitiveDependencies: null,
|
||||||
|
);
|
||||||
|
|
||||||
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||||
|
// ignore: unused_element
|
||||||
|
typedef ProgressRef = AutoDisposeStreamProviderRef<Duration>;
|
||||||
|
String _$progressBufferedHash() => r'20f886a5ad8bd4eb031eceb845201dc61dfd5fca';
|
||||||
|
|
||||||
|
/// See also [progressBuffered].
|
||||||
|
@ProviderFor(progressBuffered)
|
||||||
|
final progressBufferedProvider = AutoDisposeStreamProvider<Duration>.internal(
|
||||||
|
progressBuffered,
|
||||||
|
name: r'progressBufferedProvider',
|
||||||
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
|
? null
|
||||||
|
: _$progressBufferedHash,
|
||||||
|
dependencies: null,
|
||||||
|
allTransitiveDependencies: null,
|
||||||
|
);
|
||||||
|
|
||||||
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||||
|
// ignore: unused_element
|
||||||
|
typedef ProgressBufferedRef = AutoDisposeStreamProviderRef<Duration>;
|
||||||
|
String _$absPlayerHash() => r'c43c02b600326c2d47b900cb3977cd9fae201463';
|
||||||
|
|
||||||
|
/// See also [AbsPlayer].
|
||||||
|
@ProviderFor(AbsPlayer)
|
||||||
|
final absPlayerProvider = NotifierProvider<AbsPlayer, AbsAudioPlayer>.internal(
|
||||||
|
AbsPlayer.new,
|
||||||
|
name: r'absPlayerProvider',
|
||||||
|
debugGetCreateSourceHash:
|
||||||
|
const bool.fromEnvironment('dart.vm.product') ? null : _$absPlayerHash,
|
||||||
|
dependencies: null,
|
||||||
|
allTransitiveDependencies: null,
|
||||||
|
);
|
||||||
|
|
||||||
|
typedef _$AbsPlayer = Notifier<AbsAudioPlayer>;
|
||||||
|
String _$playerStateHash() => r'eb79bd816714f721da1c4226d4447de5dc55fc5c';
|
||||||
|
|
||||||
|
/// See also [PlayerState].
|
||||||
|
@ProviderFor(PlayerState)
|
||||||
|
final playerStateProvider =
|
||||||
|
AutoDisposeNotifierProvider<PlayerState, audio.PlayerState>.internal(
|
||||||
|
PlayerState.new,
|
||||||
|
name: r'playerStateProvider',
|
||||||
|
debugGetCreateSourceHash:
|
||||||
|
const bool.fromEnvironment('dart.vm.product') ? null : _$playerStateHash,
|
||||||
|
dependencies: null,
|
||||||
|
allTransitiveDependencies: null,
|
||||||
|
);
|
||||||
|
|
||||||
|
typedef _$PlayerState = AutoDisposeNotifier<audio.PlayerState>;
|
||||||
|
String _$currentTimeHash() => r'e2cf66f5f04cd51f5ddafd64ace395ec3bf0ede2';
|
||||||
|
|
||||||
/// Copied from Dart SDK
|
/// Copied from Dart SDK
|
||||||
class _SystemHash {
|
class _SystemHash {
|
||||||
|
|
@ -64,16 +142,25 @@ class _SystemHash {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// See also [currentTime].
|
abstract class _$CurrentTime
|
||||||
@ProviderFor(currentTime)
|
extends BuildlessAutoDisposeAsyncNotifier<shelfsdk.MediaProgress?> {
|
||||||
|
late final String libraryItemId;
|
||||||
|
|
||||||
|
FutureOr<shelfsdk.MediaProgress?> build(
|
||||||
|
String libraryItemId,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// See also [CurrentTime].
|
||||||
|
@ProviderFor(CurrentTime)
|
||||||
const currentTimeProvider = CurrentTimeFamily();
|
const currentTimeProvider = CurrentTimeFamily();
|
||||||
|
|
||||||
/// See also [currentTime].
|
/// See also [CurrentTime].
|
||||||
class CurrentTimeFamily extends Family<AsyncValue<Duration?>> {
|
class CurrentTimeFamily extends Family<AsyncValue<shelfsdk.MediaProgress?>> {
|
||||||
/// See also [currentTime].
|
/// See also [CurrentTime].
|
||||||
const CurrentTimeFamily();
|
const CurrentTimeFamily();
|
||||||
|
|
||||||
/// See also [currentTime].
|
/// See also [CurrentTime].
|
||||||
CurrentTimeProvider call(
|
CurrentTimeProvider call(
|
||||||
String libraryItemId,
|
String libraryItemId,
|
||||||
) {
|
) {
|
||||||
|
|
@ -106,16 +193,14 @@ class CurrentTimeFamily extends Family<AsyncValue<Duration?>> {
|
||||||
String? get name => r'currentTimeProvider';
|
String? get name => r'currentTimeProvider';
|
||||||
}
|
}
|
||||||
|
|
||||||
/// See also [currentTime].
|
/// See also [CurrentTime].
|
||||||
class CurrentTimeProvider extends AutoDisposeFutureProvider<Duration?> {
|
class CurrentTimeProvider extends AutoDisposeAsyncNotifierProviderImpl<
|
||||||
/// See also [currentTime].
|
CurrentTime, shelfsdk.MediaProgress?> {
|
||||||
|
/// See also [CurrentTime].
|
||||||
CurrentTimeProvider(
|
CurrentTimeProvider(
|
||||||
String libraryItemId,
|
String libraryItemId,
|
||||||
) : this._internal(
|
) : this._internal(
|
||||||
(ref) => currentTime(
|
() => CurrentTime()..libraryItemId = libraryItemId,
|
||||||
ref as CurrentTimeRef,
|
|
||||||
libraryItemId,
|
|
||||||
),
|
|
||||||
from: currentTimeProvider,
|
from: currentTimeProvider,
|
||||||
name: r'currentTimeProvider',
|
name: r'currentTimeProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
|
|
@ -141,13 +226,20 @@ class CurrentTimeProvider extends AutoDisposeFutureProvider<Duration?> {
|
||||||
final String libraryItemId;
|
final String libraryItemId;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Override overrideWith(
|
FutureOr<shelfsdk.MediaProgress?> runNotifierBuild(
|
||||||
FutureOr<Duration?> Function(CurrentTimeRef provider) create,
|
covariant CurrentTime notifier,
|
||||||
) {
|
) {
|
||||||
|
return notifier.build(
|
||||||
|
libraryItemId,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Override overrideWith(CurrentTime Function() create) {
|
||||||
return ProviderOverride(
|
return ProviderOverride(
|
||||||
origin: this,
|
origin: this,
|
||||||
override: CurrentTimeProvider._internal(
|
override: CurrentTimeProvider._internal(
|
||||||
(ref) => create(ref as CurrentTimeRef),
|
() => create()..libraryItemId = libraryItemId,
|
||||||
from: from,
|
from: from,
|
||||||
name: null,
|
name: null,
|
||||||
dependencies: null,
|
dependencies: null,
|
||||||
|
|
@ -159,7 +251,8 @@ class CurrentTimeProvider extends AutoDisposeFutureProvider<Duration?> {
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
AutoDisposeFutureProviderElement<Duration?> createElement() {
|
AutoDisposeAsyncNotifierProviderElement<CurrentTime, shelfsdk.MediaProgress?>
|
||||||
|
createElement() {
|
||||||
return _CurrentTimeProviderElement(this);
|
return _CurrentTimeProviderElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -179,73 +272,27 @@ class CurrentTimeProvider extends AutoDisposeFutureProvider<Duration?> {
|
||||||
|
|
||||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
||||||
// ignore: unused_element
|
// ignore: unused_element
|
||||||
mixin CurrentTimeRef on AutoDisposeFutureProviderRef<Duration?> {
|
mixin CurrentTimeRef
|
||||||
|
on AutoDisposeAsyncNotifierProviderRef<shelfsdk.MediaProgress?> {
|
||||||
/// The parameter `libraryItemId` of this provider.
|
/// The parameter `libraryItemId` of this provider.
|
||||||
String get libraryItemId;
|
String get libraryItemId;
|
||||||
}
|
}
|
||||||
|
|
||||||
class _CurrentTimeProviderElement
|
class _CurrentTimeProviderElement
|
||||||
extends AutoDisposeFutureProviderElement<Duration?> with CurrentTimeRef {
|
extends AutoDisposeAsyncNotifierProviderElement<CurrentTime,
|
||||||
|
shelfsdk.MediaProgress?> with CurrentTimeRef {
|
||||||
_CurrentTimeProviderElement(super.provider);
|
_CurrentTimeProviderElement(super.provider);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get libraryItemId => (origin as CurrentTimeProvider).libraryItemId;
|
String get libraryItemId => (origin as CurrentTimeProvider).libraryItemId;
|
||||||
}
|
}
|
||||||
|
|
||||||
String _$positionChapterHash() => r'ac6148e92363fad849713c07045503653dcaa7e8';
|
String _$currentBookHash() => r'f13ba110d104be8bae48972d6fd266d461d30898';
|
||||||
|
|
||||||
/// See also [positionChapter].
|
|
||||||
@ProviderFor(positionChapter)
|
|
||||||
final positionChapterProvider = AutoDisposeStreamProvider<Duration>.internal(
|
|
||||||
positionChapter,
|
|
||||||
name: r'positionChapterProvider',
|
|
||||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
|
||||||
? null
|
|
||||||
: _$positionChapterHash,
|
|
||||||
dependencies: null,
|
|
||||||
allTransitiveDependencies: null,
|
|
||||||
);
|
|
||||||
|
|
||||||
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
|
||||||
// ignore: unused_element
|
|
||||||
typedef PositionChapterRef = AutoDisposeStreamProviderRef<Duration>;
|
|
||||||
String _$absPlayerHash() => r'370f576d3d3a2196d1a93f2046005c1a3298d994';
|
|
||||||
|
|
||||||
/// See also [AbsPlayer].
|
|
||||||
@ProviderFor(AbsPlayer)
|
|
||||||
final absPlayerProvider = NotifierProvider<AbsPlayer, AbsAudioPlayer>.internal(
|
|
||||||
AbsPlayer.new,
|
|
||||||
name: r'absPlayerProvider',
|
|
||||||
debugGetCreateSourceHash:
|
|
||||||
const bool.fromEnvironment('dart.vm.product') ? null : _$absPlayerHash,
|
|
||||||
dependencies: null,
|
|
||||||
allTransitiveDependencies: null,
|
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$AbsPlayer = Notifier<AbsAudioPlayer>;
|
|
||||||
String _$playerStateHash() => r'eb79bd816714f721da1c4226d4447de5dc55fc5c';
|
|
||||||
|
|
||||||
/// 音频播放器 riverpod状态
|
|
||||||
///
|
|
||||||
/// Copied from [PlayerState].
|
|
||||||
@ProviderFor(PlayerState)
|
|
||||||
final playerStateProvider =
|
|
||||||
AutoDisposeNotifierProvider<PlayerState, audio.PlayerState>.internal(
|
|
||||||
PlayerState.new,
|
|
||||||
name: r'playerStateProvider',
|
|
||||||
debugGetCreateSourceHash:
|
|
||||||
const bool.fromEnvironment('dart.vm.product') ? null : _$playerStateHash,
|
|
||||||
dependencies: null,
|
|
||||||
allTransitiveDependencies: null,
|
|
||||||
);
|
|
||||||
|
|
||||||
typedef _$PlayerState = AutoDisposeNotifier<audio.PlayerState>;
|
|
||||||
String _$currentBookHash() => r'85de9041d356e214761b65bd1b7b74321d5a9221';
|
|
||||||
|
|
||||||
/// See also [CurrentBook].
|
/// See also [CurrentBook].
|
||||||
@ProviderFor(CurrentBook)
|
@ProviderFor(CurrentBook)
|
||||||
final currentBookProvider =
|
final currentBookProvider =
|
||||||
AutoDisposeNotifierProvider<CurrentBook, api.BookExpanded?>.internal(
|
AutoDisposeNotifierProvider<CurrentBook, shelfsdk.BookExpanded?>.internal(
|
||||||
CurrentBook.new,
|
CurrentBook.new,
|
||||||
name: r'currentBookProvider',
|
name: r'currentBookProvider',
|
||||||
debugGetCreateSourceHash:
|
debugGetCreateSourceHash:
|
||||||
|
|
@ -254,13 +301,13 @@ final currentBookProvider =
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef _$CurrentBook = AutoDisposeNotifier<api.BookExpanded?>;
|
typedef _$CurrentBook = AutoDisposeNotifier<shelfsdk.BookExpanded?>;
|
||||||
String _$currentChapterHash() => r'aff83aed7d098099805ec7d72ea84fff3a298522';
|
String _$currentChapterHash() => r'e8d867067f383372afd758186f13950a6746ba85';
|
||||||
|
|
||||||
/// See also [CurrentChapter].
|
/// See also [CurrentChapter].
|
||||||
@ProviderFor(CurrentChapter)
|
@ProviderFor(CurrentChapter)
|
||||||
final currentChapterProvider =
|
final currentChapterProvider =
|
||||||
AutoDisposeNotifierProvider<CurrentChapter, api.BookChapter?>.internal(
|
AutoDisposeNotifierProvider<CurrentChapter, shelfsdk.BookChapter?>.internal(
|
||||||
CurrentChapter.new,
|
CurrentChapter.new,
|
||||||
name: r'currentChapterProvider',
|
name: r'currentChapterProvider',
|
||||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||||
|
|
@ -270,6 +317,6 @@ final currentChapterProvider =
|
||||||
allTransitiveDependencies: null,
|
allTransitiveDependencies: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef _$CurrentChapter = AutoDisposeNotifier<api.BookChapter?>;
|
typedef _$CurrentChapter = AutoDisposeNotifier<shelfsdk.BookChapter?>;
|
||||||
// ignore_for_file: type=lint
|
// 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
|
// 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
|
||||||
|
|
|
||||||
|
|
@ -105,22 +105,11 @@ class PlayerExpanded extends HookConsumerWidget {
|
||||||
left: AppElementSizes.paddingRegular,
|
left: AppElementSizes.paddingRegular,
|
||||||
right: AppElementSizes.paddingRegular,
|
right: AppElementSizes.paddingRegular,
|
||||||
),
|
),
|
||||||
child: const AudiobookChapterProgressBar(),
|
child: const AbsDesktopProgressBar(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
SizedBox(
|
|
||||||
width: imageSize,
|
|
||||||
child: Padding(
|
|
||||||
padding: EdgeInsets.only(
|
|
||||||
left: AppElementSizes.paddingRegular,
|
|
||||||
right: AppElementSizes.paddingRegular,
|
|
||||||
),
|
|
||||||
child: const AudiobookProgressBar(),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
|
|
||||||
// the chapter skip buttons, seek 30 seconds back and forward, and play/pause button
|
// the chapter skip buttons, seek 30 seconds back and forward, and play/pause button
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 2,
|
flex: 2,
|
||||||
|
|
|
||||||
|
|
@ -110,9 +110,9 @@ class PlayerExpandedDesktop extends HookConsumerWidget {
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.symmetric(
|
padding: EdgeInsets.symmetric(
|
||||||
horizontal: AppElementSizes.paddingRegular,
|
horizontal: AppElementSizes.paddingLarge,
|
||||||
),
|
),
|
||||||
child: const AudiobookChapterProgressBar(
|
child: const AbsDesktopProgressBar(
|
||||||
timeLabelLocation: TimeLabelLocation.sides,
|
timeLabelLocation: TimeLabelLocation.sides,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -140,10 +140,10 @@ class PlayerExpandedDesktop extends HookConsumerWidget {
|
||||||
// mainAxisAlignment: MainAxisAlignment.center,
|
// mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 1,
|
|
||||||
child: Row(),
|
child: Row(),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
flex: 1,
|
||||||
child: Hero(
|
child: Hero(
|
||||||
tag: HeroTagPrefixes.controlsCenter,
|
tag: HeroTagPrefixes.controlsCenter,
|
||||||
child: const PlayerControlsDesktopCenter(),
|
child: const PlayerControlsDesktopCenter(),
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
|
||||||
import 'package:go_router/go_router.dart';
|
import 'package:go_router/go_router.dart';
|
||||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
import 'package:vaani/constants/hero_tag_conventions.dart';
|
import 'package:vaani/constants/hero_tag_conventions.dart';
|
||||||
|
|
@ -8,12 +7,12 @@ import 'package:vaani/features/player/providers/abs_provider.dart';
|
||||||
import 'package:vaani/features/player/view/widgets/audiobook_player_seek_button.dart';
|
import 'package:vaani/features/player/view/widgets/audiobook_player_seek_button.dart';
|
||||||
import 'package:vaani/features/player/view/widgets/audiobook_player_seek_chapter_button.dart';
|
import 'package:vaani/features/player/view/widgets/audiobook_player_seek_chapter_button.dart';
|
||||||
import 'package:vaani/features/player/view/widgets/player_player_pause_button.dart';
|
import 'package:vaani/features/player/view/widgets/player_player_pause_button.dart';
|
||||||
|
import 'package:vaani/features/player/view/widgets/player_progress_bar.dart';
|
||||||
import 'package:vaani/features/player/view/widgets/player_speed_adjust_button.dart';
|
import 'package:vaani/features/player/view/widgets/player_speed_adjust_button.dart';
|
||||||
import 'package:vaani/features/skip_start_end/view/skip_start_end_button.dart';
|
import 'package:vaani/features/skip_start_end/view/skip_start_end_button.dart';
|
||||||
import 'package:vaani/features/sleep_timer/view/sleep_timer_button.dart';
|
import 'package:vaani/features/sleep_timer/view/sleep_timer_button.dart';
|
||||||
import 'package:vaani/globals.dart';
|
import 'package:vaani/globals.dart';
|
||||||
import 'package:vaani/router/router.dart';
|
import 'package:vaani/router/router.dart';
|
||||||
import 'package:vaani/shared/extensions/chapter.dart';
|
|
||||||
import 'package:vaani/shared/extensions/model_conversions.dart';
|
import 'package:vaani/shared/extensions/model_conversions.dart';
|
||||||
import 'package:vaani/shared/widgets/shelves/book_shelf.dart';
|
import 'package:vaani/shared/widgets/shelves/book_shelf.dart';
|
||||||
|
|
||||||
|
|
@ -29,16 +28,16 @@ class PlayerMinimized extends HookConsumerWidget {
|
||||||
final size = MediaQuery.of(context).size;
|
final size = MediaQuery.of(context).size;
|
||||||
// 竖屏
|
// 竖屏
|
||||||
final isVertical = size.height > size.width;
|
final isVertical = size.height > size.width;
|
||||||
return Container(
|
return SizedBox(
|
||||||
height: playerMinHeight,
|
height: playerMinHeight,
|
||||||
color: Theme.of(context).colorScheme.surface,
|
// color: Theme.of(context).colorScheme.surface,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
alignment: Alignment.topCenter,
|
alignment: Alignment.topCenter,
|
||||||
children: [
|
children: [
|
||||||
isVertical
|
isVertical
|
||||||
? const PlayerMinimizedControls()
|
? const PlayerMinimizedControls()
|
||||||
: const PlayerMinimizedControlsDesktop(),
|
: const PlayerMinimizedControlsDesktop(),
|
||||||
const PlayerMinimizedProgress(),
|
const AbsMinimizedProgress(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
@ -145,36 +144,14 @@ class PlayerMinimizedControls extends HookConsumerWidget {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class PlayerMinimizedProgress extends HookConsumerWidget {
|
|
||||||
const PlayerMinimizedProgress({super.key});
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
|
||||||
final currentChapter = ref.watch(currentChapterProvider);
|
|
||||||
|
|
||||||
final progress = useStream(
|
|
||||||
ref.read(absPlayerProvider).positionInChapterStream,
|
|
||||||
initialData: Duration.zero,
|
|
||||||
);
|
|
||||||
return SizedBox(
|
|
||||||
height: AppElementSizes.barHeight,
|
|
||||||
child: LinearProgressIndicator(
|
|
||||||
value: (progress.data ?? Duration.zero).inSeconds /
|
|
||||||
(currentChapter?.duration.inSeconds ?? 1),
|
|
||||||
// color: Theme.of(context).colorScheme.onPrimaryContainer,
|
|
||||||
// backgroundColor: Theme.of(context).colorScheme.primaryContainer,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class PlayerMinimizedControlsDesktop extends HookConsumerWidget {
|
class PlayerMinimizedControlsDesktop extends HookConsumerWidget {
|
||||||
const PlayerMinimizedControlsDesktop({super.key});
|
const PlayerMinimizedControlsDesktop({super.key});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
final currentBook = ref.watch(currentBookProvider);
|
final currentBook = ref.watch(currentBookProvider);
|
||||||
final currentChapter = ref.watch(currentChapterProvider);
|
final absPlayer = ref.watch(absPlayerProvider);
|
||||||
|
ref.watch(currentChapterProvider);
|
||||||
|
|
||||||
return MouseRegion(
|
return MouseRegion(
|
||||||
cursor: SystemMouseCursors.click, // 桌面端显示手型光标
|
cursor: SystemMouseCursors.click, // 桌面端显示手型光标
|
||||||
|
|
@ -210,7 +187,8 @@ class PlayerMinimizedControlsDesktop extends HookConsumerWidget {
|
||||||
},
|
},
|
||||||
child: Hero(
|
child: Hero(
|
||||||
tag: HeroTagPrefixes.bookCoverWith(
|
tag: HeroTagPrefixes.bookCoverWith(
|
||||||
currentBook?.libraryItemId),
|
currentBook?.libraryItemId,
|
||||||
|
),
|
||||||
child: BookCoverWidget(
|
child: BookCoverWidget(
|
||||||
playerMinHeight,
|
playerMinHeight,
|
||||||
itemId: currentBook?.libraryItemId,
|
itemId: currentBook?.libraryItemId,
|
||||||
|
|
@ -231,18 +209,14 @@ class PlayerMinimizedControlsDesktop extends HookConsumerWidget {
|
||||||
children: [
|
children: [
|
||||||
// AutoScrollText(
|
// AutoScrollText(
|
||||||
Text(
|
Text(
|
||||||
currentChapter?.title ??
|
absPlayer.primaryTitle(),
|
||||||
currentBook?.metadata.title ??
|
|
||||||
'',
|
|
||||||
maxLines: 1, overflow: TextOverflow.ellipsis,
|
maxLines: 1, overflow: TextOverflow.ellipsis,
|
||||||
// velocity:
|
// velocity:
|
||||||
// const Velocity(pixelsPerSecond: Offset(16, 0)),
|
// const Velocity(pixelsPerSecond: Offset(16, 0)),
|
||||||
style: Theme.of(context).textTheme.bodyLarge,
|
style: Theme.of(context).textTheme.bodyLarge,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
currentBook?.metadata.asBookMetadataExpanded
|
absPlayer.secondaryTitle(),
|
||||||
.authorName ??
|
|
||||||
'',
|
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
|
|
@ -263,6 +237,7 @@ class PlayerMinimizedControlsDesktop extends HookConsumerWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
flex: 1,
|
||||||
child: Hero(
|
child: Hero(
|
||||||
tag: HeroTagPrefixes.controlsCenter,
|
tag: HeroTagPrefixes.controlsCenter,
|
||||||
child: const PlayerControlsDesktopCenter(),
|
child: const PlayerControlsDesktopCenter(),
|
||||||
|
|
|
||||||
|
|
@ -1,60 +1,44 @@
|
||||||
import 'package:audio_video_progress_bar/audio_video_progress_bar.dart';
|
import 'package:audio_video_progress_bar/audio_video_progress_bar.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
|
||||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
import 'package:vaani/constants/sizes.dart';
|
import 'package:vaani/constants/sizes.dart';
|
||||||
import 'package:vaani/features/player/providers/abs_provider.dart';
|
import 'package:vaani/features/player/providers/abs_provider.dart';
|
||||||
|
import 'package:vaani/features/settings/app_settings_provider.dart';
|
||||||
|
|
||||||
// 章节进度
|
/// 进度条展示 根据设置显示章节进度或整本书的进度
|
||||||
class AudiobookChapterProgressBar extends HookConsumerWidget {
|
class AbsDesktopProgressBar extends HookConsumerWidget {
|
||||||
final TimeLabelLocation timeLabelLocation;
|
final TimeLabelLocation timeLabelLocation;
|
||||||
const AudiobookChapterProgressBar({
|
const AbsDesktopProgressBar({
|
||||||
super.key,
|
super.key,
|
||||||
this.timeLabelLocation = TimeLabelLocation.below,
|
this.timeLabelLocation = TimeLabelLocation.below,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
final book = ref.watch(currentBookProvider);
|
|
||||||
final player = ref.watch(absPlayerProvider);
|
final player = ref.watch(absPlayerProvider);
|
||||||
final currentChapter = ref.watch(currentChapterProvider);
|
final currentChapter = ref.watch(currentChapterProvider);
|
||||||
final position = useStream(
|
final playerSettings =
|
||||||
player.positionInBookStream,
|
ref.watch(appSettingsProvider.select((v) => v.playerSettings));
|
||||||
initialData: const Duration(seconds: 0),
|
final showChapterProgress =
|
||||||
);
|
playerSettings.expandedPlayerSettings.showChapterProgress;
|
||||||
final buffered = useStream(
|
|
||||||
player.bufferedPositionInBookStream,
|
|
||||||
initialData: const Duration(seconds: 0),
|
|
||||||
);
|
|
||||||
|
|
||||||
// now find the chapter that corresponds to the current time
|
final position = ref.watch(progressProvider);
|
||||||
// and calculate the progress of the current chapter
|
final buffered = ref.watch(progressBufferedProvider);
|
||||||
final currentChapterProgress = currentChapter == null
|
|
||||||
? null
|
|
||||||
: (player.positionInBook - currentChapter.start);
|
|
||||||
|
|
||||||
final currentChapterBuffered = currentChapter == null
|
final total = ref.watch(totalProvider);
|
||||||
? null
|
|
||||||
: (player.bufferedPositionInBook - currentChapter.start);
|
|
||||||
|
|
||||||
final progress =
|
|
||||||
currentChapterProgress ?? position.data ?? const Duration(seconds: 0);
|
|
||||||
final total = currentChapter == null
|
|
||||||
? book?.duration ?? const Duration(seconds: 0)
|
|
||||||
: currentChapter.end - currentChapter.start;
|
|
||||||
return ProgressBar(
|
return ProgressBar(
|
||||||
progress: progress,
|
progress: position.requireValue,
|
||||||
total: total,
|
total: total,
|
||||||
// ! TODO add onSeek
|
|
||||||
onSeek: (duration) {
|
onSeek: (duration) {
|
||||||
player.seekInBook(
|
player.seekInBook(
|
||||||
duration + (currentChapter?.start ?? const Duration(seconds: 0)),
|
duration +
|
||||||
|
(showChapterProgress
|
||||||
|
? (currentChapter?.start ?? Duration.zero)
|
||||||
|
: Duration.zero),
|
||||||
);
|
);
|
||||||
// player.seek(duration);
|
|
||||||
},
|
},
|
||||||
thumbRadius: 8,
|
thumbRadius: 8,
|
||||||
buffered:
|
buffered: buffered.requireValue,
|
||||||
currentChapterBuffered ?? buffered.data ?? const Duration(seconds: 0),
|
|
||||||
bufferedBarColor: Theme.of(context).colorScheme.secondary,
|
bufferedBarColor: Theme.of(context).colorScheme.secondary,
|
||||||
timeLabelType: TimeLabelType.remainingTime,
|
timeLabelType: TimeLabelType.remainingTime,
|
||||||
timeLabelLocation: timeLabelLocation,
|
timeLabelLocation: timeLabelLocation,
|
||||||
|
|
@ -63,26 +47,19 @@ class AudiobookChapterProgressBar extends HookConsumerWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 书籍进度 简化版
|
// 书籍进度 简化版
|
||||||
class AudiobookProgressBar extends HookConsumerWidget {
|
class AbsMinimizedProgress extends HookConsumerWidget {
|
||||||
const AudiobookProgressBar({
|
const AbsMinimizedProgress({super.key});
|
||||||
super.key,
|
|
||||||
});
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
final book = ref.watch(currentBookProvider);
|
final position = ref.watch(progressProvider);
|
||||||
final player = ref.read(absPlayerProvider);
|
final total = ref.watch(totalProvider);
|
||||||
final position = useStream(
|
|
||||||
player.positionInBookStream,
|
|
||||||
initialData: const Duration(seconds: 0),
|
|
||||||
);
|
|
||||||
|
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
height: AppElementSizes.barHeightLarge,
|
height: AppElementSizes.barHeight,
|
||||||
child: LinearProgressIndicator(
|
child: LinearProgressIndicator(
|
||||||
value: (position.data ?? const Duration(seconds: 0)).inSeconds /
|
value: total > Duration.zero
|
||||||
(book?.duration ?? const Duration(seconds: 0)).inSeconds,
|
? ((position.value ?? Duration.zero).inSeconds / total.inSeconds)
|
||||||
borderRadius: BorderRadiusGeometry.all(Radius.circular(10)),
|
: 0,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import 'package:vaani/shared/extensions/obfuscation.dart';
|
||||||
|
|
||||||
part 'api_settings_provider.g.dart';
|
part 'api_settings_provider.g.dart';
|
||||||
|
|
||||||
final _box = AvailableHiveBoxes.apiSettingsBox;
|
final _box = HiveBoxes.apiSettingsBox;
|
||||||
|
|
||||||
final _logger = Logger('ApiSettingsProvider');
|
final _logger = Logger('ApiSettingsProvider');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import 'package:vaani/features/settings/models/app_settings.dart' as model;
|
||||||
|
|
||||||
part 'app_settings_provider.g.dart';
|
part 'app_settings_provider.g.dart';
|
||||||
|
|
||||||
final _box = AvailableHiveBoxes.userPrefsBox;
|
final _box = HiveBoxes.userPrefsBox;
|
||||||
|
|
||||||
final _logger = Logger('AppSettingsProvider');
|
final _logger = Logger('AppSettingsProvider');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
// ignore_for_file: unreachable_switch_default
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
import 'package:flutter_hooks/flutter_hooks.dart';
|
||||||
import 'package:flutter_settings_ui/flutter_settings_ui.dart';
|
import 'package:flutter_settings_ui/flutter_settings_ui.dart';
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
|
// ignore_for_file: unreachable_switch_default, unused_element
|
||||||
|
|
||||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
import 'package:just_audio/just_audio.dart';
|
import 'package:just_audio/just_audio.dart';
|
||||||
import 'package:logging/logging.dart';
|
import 'package:logging/logging.dart';
|
||||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||||
import 'package:vaani/features/player/providers/abs_provider.dart'
|
import 'package:vaani/features/player/providers/abs_provider.dart';
|
||||||
hide AudioPlayer;
|
|
||||||
import 'package:vaani/features/settings/app_settings_provider.dart'
|
import 'package:vaani/features/settings/app_settings_provider.dart'
|
||||||
show appSettingsProvider;
|
show appSettingsProvider;
|
||||||
import 'package:vaani/features/settings/models/app_settings.dart';
|
import 'package:vaani/features/settings/models/app_settings.dart';
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,7 @@ class PlayerSkipChapterStartEnd extends HookConsumerWidget {
|
||||||
bookSettings.copyWith
|
bookSettings.copyWith
|
||||||
.playerSettings(skipChapterStart: interval),
|
.playerSettings(skipChapterStart: interval),
|
||||||
);
|
);
|
||||||
|
reloadPlayer(ref);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -97,6 +98,7 @@ class PlayerSkipChapterStartEnd extends HookConsumerWidget {
|
||||||
bookSettings.copyWith
|
bookSettings.copyWith
|
||||||
.playerSettings(skipChapterEnd: interval),
|
.playerSettings(skipChapterEnd: interval),
|
||||||
);
|
);
|
||||||
|
reloadPlayer(ref);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -104,4 +106,15 @@ class PlayerSkipChapterStartEnd extends HookConsumerWidget {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void reloadPlayer(WidgetRef ref) {
|
||||||
|
final currentBook = ref.watch(currentBookProvider);
|
||||||
|
if (currentBook == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
final absPlayer = ref.read(absPlayerProvider);
|
||||||
|
final positionInBook = absPlayer.positionInBook;
|
||||||
|
ref.read(currentBookProvider.notifier).update(currentBook.libraryItemId,
|
||||||
|
force: true, currentTime: positionInBook);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
16
lib/features/statistics/abs_statistics.dart
Normal file
16
lib/features/statistics/abs_statistics.dart
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
|
|
||||||
|
class LibraryStatisticsPage extends HookConsumerWidget {
|
||||||
|
const LibraryStatisticsPage({super.key});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
|
return Scaffold(
|
||||||
|
appBar: AppBar(
|
||||||
|
title: Text('统计'),
|
||||||
|
),
|
||||||
|
// body: Text('统计'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -38,500 +38,476 @@ class MessageLookup extends MessageLookupByLibrary {
|
||||||
|
|
||||||
final messages = _notInlinedMessages(_notInlinedMessages);
|
final messages = _notInlinedMessages(_notInlinedMessages);
|
||||||
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
|
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
|
||||||
"account": MessageLookupByLibrary.simpleMessage("Account"),
|
"account": MessageLookupByLibrary.simpleMessage("Account"),
|
||||||
"accountAddNewServer": MessageLookupByLibrary.simpleMessage(
|
"accountAddNewServer": MessageLookupByLibrary.simpleMessage(
|
||||||
"Add New Server",
|
"Add New Server",
|
||||||
),
|
),
|
||||||
"accountAddUser": MessageLookupByLibrary.simpleMessage("Add User"),
|
"accountAddUser": MessageLookupByLibrary.simpleMessage("Add User"),
|
||||||
"accountAddUserDialog": m0,
|
"accountAddUserDialog": m0,
|
||||||
"accountAddUserSuccessDialog": MessageLookupByLibrary.simpleMessage(
|
"accountAddUserSuccessDialog": MessageLookupByLibrary.simpleMessage(
|
||||||
"User added successfully! Switch?",
|
"User added successfully! Switch?",
|
||||||
),
|
),
|
||||||
"accountAddUserTooltip": MessageLookupByLibrary.simpleMessage(
|
"accountAddUserTooltip": MessageLookupByLibrary.simpleMessage(
|
||||||
"Add new server",
|
"Add new server",
|
||||||
),
|
),
|
||||||
"accountAnonymous": MessageLookupByLibrary.simpleMessage("Anonymous"),
|
"accountAnonymous": MessageLookupByLibrary.simpleMessage("Anonymous"),
|
||||||
"accountDeleteServer": MessageLookupByLibrary.simpleMessage(
|
"accountDeleteServer": MessageLookupByLibrary.simpleMessage(
|
||||||
"Delete Server",
|
"Delete Server",
|
||||||
),
|
),
|
||||||
"accountInvalidURL":
|
"accountInvalidURL": MessageLookupByLibrary.simpleMessage("Invalid URL"),
|
||||||
MessageLookupByLibrary.simpleMessage("Invalid URL"),
|
"accountManage": MessageLookupByLibrary.simpleMessage("Manage Accounts"),
|
||||||
"accountManage":
|
"accountRegisteredServers": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage("Manage Accounts"),
|
"Registered Servers",
|
||||||
"accountRegisteredServers": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Registered Servers",
|
"accountRemoveServerAndUsers": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Remove Server and Users",
|
||||||
"accountRemoveServerAndUsers": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Remove Server and Users",
|
"accountRemoveServerAndUsersHead": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"This will remove the server ",
|
||||||
"accountRemoveServerAndUsersHead": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"This will remove the server ",
|
"accountRemoveServerAndUsersTail": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
" and all its users\' login info from this app.",
|
||||||
"accountRemoveServerAndUsersTail": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
" and all its users\' login info from this app.",
|
"accountRemoveUserLogin": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Remove User Login",
|
||||||
"accountRemoveUserLogin": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Remove User Login",
|
"accountRemoveUserLoginHead": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"This will remove login details of the user ",
|
||||||
"accountRemoveUserLoginHead": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"This will remove login details of the user ",
|
"accountRemoveUserLoginTail": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
" from this app.",
|
||||||
"accountRemoveUserLoginTail": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
" from this app.",
|
"accountServerURI": MessageLookupByLibrary.simpleMessage("Server URI"),
|
||||||
),
|
"accountSwitch": MessageLookupByLibrary.simpleMessage("Switch Account"),
|
||||||
"accountServerURI": MessageLookupByLibrary.simpleMessage("Server URI"),
|
"accountUsersCount": m1,
|
||||||
"accountSwitch": MessageLookupByLibrary.simpleMessage("Switch Account"),
|
"appSettings": MessageLookupByLibrary.simpleMessage("App Settings"),
|
||||||
"accountUsersCount": m1,
|
"appearance": MessageLookupByLibrary.simpleMessage("Appearance"),
|
||||||
"appSettings": MessageLookupByLibrary.simpleMessage("App Settings"),
|
"autoSleepTimerSettings": MessageLookupByLibrary.simpleMessage(
|
||||||
"appearance": MessageLookupByLibrary.simpleMessage("Appearance"),
|
"Auto Sleep Timer Settings",
|
||||||
"autoSleepTimerSettings": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Auto Sleep Timer Settings",
|
"autoTurnOnSleepTimer": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Auto Turn On Sleep Timer",
|
||||||
"autoTurnOnSleepTimer": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Auto Turn On Sleep Timer",
|
"autoTurnOnTimer": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Auto Turn On Timer",
|
||||||
"autoTurnOnTimer": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Auto Turn On Timer",
|
"autoTurnOnTimerAlways": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Always Auto Turn On Timer",
|
||||||
"autoTurnOnTimerAlways": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Always Auto Turn On Timer",
|
"autoTurnOnTimerAlwaysDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Always turn on the sleep timer, no matter what",
|
||||||
"autoTurnOnTimerAlwaysDescription":
|
),
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"autoTurnOnTimerDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"Always turn on the sleep timer, no matter what",
|
"Automatically turn on the sleep timer based on the time of day",
|
||||||
),
|
),
|
||||||
"autoTurnOnTimerDescription": MessageLookupByLibrary.simpleMessage(
|
"autoTurnOnTimerFrom": MessageLookupByLibrary.simpleMessage("From"),
|
||||||
"Automatically turn on the sleep timer based on the time of day",
|
"autoTurnOnTimerFromDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Turn on the sleep timer at the specified time",
|
||||||
"autoTurnOnTimerFrom": MessageLookupByLibrary.simpleMessage("From"),
|
),
|
||||||
"autoTurnOnTimerFromDescription": MessageLookupByLibrary.simpleMessage(
|
"autoTurnOnTimerUntil": MessageLookupByLibrary.simpleMessage("Until"),
|
||||||
"Turn on the sleep timer at the specified time",
|
"autoTurnOnTimerUntilDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Turn off the sleep timer at the specified time",
|
||||||
"autoTurnOnTimerUntil": MessageLookupByLibrary.simpleMessage("Until"),
|
),
|
||||||
"autoTurnOnTimerUntilDescription": MessageLookupByLibrary.simpleMessage(
|
"automaticallyDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"Turn off the sleep timer at the specified time",
|
"Automatically turn on the sleep timer based on the time of day",
|
||||||
),
|
),
|
||||||
"automaticallyDescription": MessageLookupByLibrary.simpleMessage(
|
"backup": MessageLookupByLibrary.simpleMessage("Backup"),
|
||||||
"Automatically turn on the sleep timer based on the time of day",
|
"backupAndRestore": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Backup and Restore",
|
||||||
"backup": MessageLookupByLibrary.simpleMessage("Backup"),
|
),
|
||||||
"backupAndRestore": MessageLookupByLibrary.simpleMessage(
|
"bookAbout": MessageLookupByLibrary.simpleMessage("About the Book"),
|
||||||
"Backup and Restore",
|
"bookAboutDefault": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Sorry, no description found",
|
||||||
"bookAbout": MessageLookupByLibrary.simpleMessage("About the Book"),
|
),
|
||||||
"bookAboutDefault": MessageLookupByLibrary.simpleMessage(
|
"bookAuthors": MessageLookupByLibrary.simpleMessage("Authors"),
|
||||||
"Sorry, no description found",
|
"bookDownloads": MessageLookupByLibrary.simpleMessage("Downloads"),
|
||||||
),
|
"bookGenres": MessageLookupByLibrary.simpleMessage("Genres"),
|
||||||
"bookAuthors": MessageLookupByLibrary.simpleMessage("Authors"),
|
"bookMetadataAbridged": MessageLookupByLibrary.simpleMessage("Abridged"),
|
||||||
"bookDownloads": MessageLookupByLibrary.simpleMessage("Downloads"),
|
"bookMetadataLength": MessageLookupByLibrary.simpleMessage("Length"),
|
||||||
"bookGenres": MessageLookupByLibrary.simpleMessage("Genres"),
|
"bookMetadataPublished": MessageLookupByLibrary.simpleMessage("Published"),
|
||||||
"bookMetadataAbridged":
|
"bookMetadataUnabridged": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage("Abridged"),
|
"Unabridged",
|
||||||
"bookMetadataLength": MessageLookupByLibrary.simpleMessage("Length"),
|
),
|
||||||
"bookMetadataPublished":
|
"bookSeries": MessageLookupByLibrary.simpleMessage("Series"),
|
||||||
MessageLookupByLibrary.simpleMessage("Published"),
|
"bookShelveEmpty": MessageLookupByLibrary.simpleMessage("Try again"),
|
||||||
"bookMetadataUnabridged": MessageLookupByLibrary.simpleMessage(
|
"bookShelveEmptyText": MessageLookupByLibrary.simpleMessage(
|
||||||
"Unabridged",
|
"No shelves to display",
|
||||||
),
|
),
|
||||||
"bookSeries": MessageLookupByLibrary.simpleMessage("Series"),
|
"cancel": MessageLookupByLibrary.simpleMessage("Cancel"),
|
||||||
"bookShelveEmpty": MessageLookupByLibrary.simpleMessage("Try again"),
|
"chapterNotFound": MessageLookupByLibrary.simpleMessage("Chapters"),
|
||||||
"bookShelveEmptyText": MessageLookupByLibrary.simpleMessage(
|
"chapterSelect": MessageLookupByLibrary.simpleMessage("Select Chapter"),
|
||||||
"No shelves to display",
|
"chapterSkip": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Skip chapter opening and ending",
|
||||||
"cancel": MessageLookupByLibrary.simpleMessage("Cancel"),
|
),
|
||||||
"chapterNotFound": MessageLookupByLibrary.simpleMessage("Chapters"),
|
"chapterSkipEnd": MessageLookupByLibrary.simpleMessage(
|
||||||
"chapterSelect": MessageLookupByLibrary.simpleMessage("Select Chapter"),
|
"Skip chapter opening for ",
|
||||||
"chapterSkip": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Skip chapter opening and ending",
|
"chapterSkipOpen": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Skip chapter opening for ",
|
||||||
"chapterSkipEnd": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Skip chapter opening for ",
|
"chapters": MessageLookupByLibrary.simpleMessage("Chapters"),
|
||||||
),
|
"copyToClipboard": MessageLookupByLibrary.simpleMessage(
|
||||||
"chapterSkipOpen": MessageLookupByLibrary.simpleMessage(
|
"Copy to Clipboard",
|
||||||
"Skip chapter opening for ",
|
),
|
||||||
),
|
"copyToClipboardDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"chapters": MessageLookupByLibrary.simpleMessage("Chapters"),
|
"Copy the app settings to the clipboard",
|
||||||
"copyToClipboard": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Copy to Clipboard",
|
"copyToClipboardToast": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Settings copied to clipboard",
|
||||||
"copyToClipboardDescription": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Copy the app settings to the clipboard",
|
"delete": MessageLookupByLibrary.simpleMessage("Delete"),
|
||||||
),
|
"deleteDialog": m2,
|
||||||
"copyToClipboardToast": MessageLookupByLibrary.simpleMessage(
|
"deleted": m3,
|
||||||
"Settings copied to clipboard",
|
"downloadSettings": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Download Settings",
|
||||||
"delete": MessageLookupByLibrary.simpleMessage("Delete"),
|
),
|
||||||
"deleteDialog": m2,
|
"downloadSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"deleted": m3,
|
"Customize download settings",
|
||||||
"downloadSettings": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Download Settings",
|
"erArmedText": MessageLookupByLibrary.simpleMessage("Release ready"),
|
||||||
),
|
"erDragText": MessageLookupByLibrary.simpleMessage("Pull to refresh"),
|
||||||
"downloadSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
"erDragTextUp": MessageLookupByLibrary.simpleMessage("Pull to refresh"),
|
||||||
"Customize download settings",
|
"erFailedText": MessageLookupByLibrary.simpleMessage("Failed"),
|
||||||
),
|
"erMessageText": MessageLookupByLibrary.simpleMessage("Last updated at %T"),
|
||||||
"erArmedText": MessageLookupByLibrary.simpleMessage("Release ready"),
|
"erNoMoreText": MessageLookupByLibrary.simpleMessage("No more"),
|
||||||
"erDragText": MessageLookupByLibrary.simpleMessage("Pull to refresh"),
|
"erProcessedText": MessageLookupByLibrary.simpleMessage("Succeeded"),
|
||||||
"erDragTextUp": MessageLookupByLibrary.simpleMessage("Pull to refresh"),
|
"erProcessingText": MessageLookupByLibrary.simpleMessage("Refreshing..."),
|
||||||
"erFailedText": MessageLookupByLibrary.simpleMessage("Failed"),
|
"erReadyText": MessageLookupByLibrary.simpleMessage("Refreshing..."),
|
||||||
"erMessageText":
|
"explore": MessageLookupByLibrary.simpleMessage("explore"),
|
||||||
MessageLookupByLibrary.simpleMessage("Last updated at %T"),
|
"exploreHint": MessageLookupByLibrary.simpleMessage(
|
||||||
"erNoMoreText": MessageLookupByLibrary.simpleMessage("No more"),
|
"Seek and you shall discover...",
|
||||||
"erProcessedText": MessageLookupByLibrary.simpleMessage("Succeeded"),
|
),
|
||||||
"erProcessingText":
|
"exploreTooltip": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage("Refreshing..."),
|
"Search and Explore",
|
||||||
"erReadyText": MessageLookupByLibrary.simpleMessage("Refreshing..."),
|
),
|
||||||
"explore": MessageLookupByLibrary.simpleMessage("explore"),
|
"general": MessageLookupByLibrary.simpleMessage("General"),
|
||||||
"exploreHint": MessageLookupByLibrary.simpleMessage(
|
"help": MessageLookupByLibrary.simpleMessage("Help"),
|
||||||
"Seek and you shall discover...",
|
"home": MessageLookupByLibrary.simpleMessage("Home"),
|
||||||
),
|
"homeBookContinueListening": MessageLookupByLibrary.simpleMessage(
|
||||||
"exploreTooltip": MessageLookupByLibrary.simpleMessage(
|
"Continue Listening",
|
||||||
"Search and Explore",
|
),
|
||||||
),
|
"homeBookContinueListeningDescription":
|
||||||
"general": MessageLookupByLibrary.simpleMessage("General"),
|
MessageLookupByLibrary.simpleMessage(
|
||||||
"help": MessageLookupByLibrary.simpleMessage("Help"),
|
|
||||||
"home": MessageLookupByLibrary.simpleMessage("Home"),
|
|
||||||
"homeBookContinueListening": MessageLookupByLibrary.simpleMessage(
|
|
||||||
"Continue Listening",
|
|
||||||
),
|
|
||||||
"homeBookContinueListeningDescription":
|
|
||||||
MessageLookupByLibrary.simpleMessage(
|
|
||||||
"Show play button for books in currently listening shelf",
|
"Show play button for books in currently listening shelf",
|
||||||
),
|
),
|
||||||
"homeBookContinueSeries": MessageLookupByLibrary.simpleMessage(
|
"homeBookContinueSeries": MessageLookupByLibrary.simpleMessage(
|
||||||
"Continue Series",
|
"Continue Series",
|
||||||
),
|
),
|
||||||
"homeBookContinueSeriesDescription":
|
"homeBookContinueSeriesDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"Show play button for books in continue series shelf",
|
||||||
"Show play button for books in continue series shelf",
|
),
|
||||||
),
|
"homeBookDiscover": MessageLookupByLibrary.simpleMessage("Discover"),
|
||||||
"homeBookDiscover": MessageLookupByLibrary.simpleMessage("Discover"),
|
"homeBookListenAgain": MessageLookupByLibrary.simpleMessage("Listen Again"),
|
||||||
"homeBookListenAgain":
|
"homeBookListenAgainDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage("Listen Again"),
|
"Show play button for all books in listen again shelf",
|
||||||
"homeBookListenAgainDescription": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Show play button for all books in listen again shelf",
|
"homeBookNewestAuthors": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Newest Authors",
|
||||||
"homeBookNewestAuthors": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Newest Authors",
|
"homeBookRecentlyAdded": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Recently Added",
|
||||||
"homeBookRecentlyAdded": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Recently Added",
|
"homeBookRecommended": MessageLookupByLibrary.simpleMessage("Recommended"),
|
||||||
),
|
"homeContinueListening": MessageLookupByLibrary.simpleMessage(
|
||||||
"homeBookRecommended":
|
"Continue Listening",
|
||||||
MessageLookupByLibrary.simpleMessage("Recommended"),
|
),
|
||||||
"homeContinueListening": MessageLookupByLibrary.simpleMessage(
|
"homeListenAgain": MessageLookupByLibrary.simpleMessage("Listen Again"),
|
||||||
"Continue Listening",
|
"homePageSettings": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Home Page Settings",
|
||||||
"homeListenAgain": MessageLookupByLibrary.simpleMessage("Listen Again"),
|
),
|
||||||
"homePageSettings": MessageLookupByLibrary.simpleMessage(
|
"homePageSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"Home Page Settings",
|
"Customize the home page",
|
||||||
),
|
),
|
||||||
"homePageSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
"homePageSettingsOtherShelves": MessageLookupByLibrary.simpleMessage(
|
||||||
"Customize the home page",
|
"Other shelves",
|
||||||
),
|
),
|
||||||
"homePageSettingsOtherShelves": MessageLookupByLibrary.simpleMessage(
|
"homePageSettingsOtherShelvesDescription":
|
||||||
"Other shelves",
|
MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
|
||||||
"homePageSettingsOtherShelvesDescription":
|
|
||||||
MessageLookupByLibrary.simpleMessage(
|
|
||||||
"Show play button for all books in all remaining shelves",
|
"Show play button for all books in all remaining shelves",
|
||||||
),
|
),
|
||||||
"homePageSettingsQuickPlay": MessageLookupByLibrary.simpleMessage(
|
"homePageSettingsQuickPlay": MessageLookupByLibrary.simpleMessage(
|
||||||
"Quick Play",
|
"Quick Play",
|
||||||
),
|
),
|
||||||
"homeStartListening": MessageLookupByLibrary.simpleMessage(
|
"homeStartListening": MessageLookupByLibrary.simpleMessage(
|
||||||
"Start Listening",
|
"Start Listening",
|
||||||
),
|
),
|
||||||
"language": MessageLookupByLibrary.simpleMessage("Language"),
|
"language": MessageLookupByLibrary.simpleMessage("Language"),
|
||||||
"languageDescription": MessageLookupByLibrary.simpleMessage(
|
"languageDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"Language switch",
|
"Language switch",
|
||||||
),
|
),
|
||||||
"library": MessageLookupByLibrary.simpleMessage("Library"),
|
"library": MessageLookupByLibrary.simpleMessage("Library"),
|
||||||
"libraryChange": MessageLookupByLibrary.simpleMessage("Change Library"),
|
"libraryChange": MessageLookupByLibrary.simpleMessage("Change Library"),
|
||||||
"libraryEmpty": MessageLookupByLibrary.simpleMessage(
|
"libraryEmpty": MessageLookupByLibrary.simpleMessage(
|
||||||
"No libraries available.",
|
"No libraries available.",
|
||||||
),
|
),
|
||||||
"libraryLoadError": m4,
|
"libraryLoadError": m4,
|
||||||
"librarySelect": MessageLookupByLibrary.simpleMessage("Select Library"),
|
"librarySelect": MessageLookupByLibrary.simpleMessage("Select Library"),
|
||||||
"librarySwitchTooltip": MessageLookupByLibrary.simpleMessage(
|
"librarySwitchTooltip": MessageLookupByLibrary.simpleMessage(
|
||||||
"Switch Library",
|
"Switch Library",
|
||||||
),
|
),
|
||||||
"libraryTooltip": MessageLookupByLibrary.simpleMessage(
|
"libraryTooltip": MessageLookupByLibrary.simpleMessage(
|
||||||
"Browse your library",
|
"Browse your library",
|
||||||
),
|
),
|
||||||
"loading": MessageLookupByLibrary.simpleMessage("Loading..."),
|
"loading": MessageLookupByLibrary.simpleMessage("Loading..."),
|
||||||
"loginLocal": MessageLookupByLibrary.simpleMessage("Local"),
|
"loginLocal": MessageLookupByLibrary.simpleMessage("Local"),
|
||||||
"loginLogin": MessageLookupByLibrary.simpleMessage("Login"),
|
"loginLogin": MessageLookupByLibrary.simpleMessage("Login"),
|
||||||
"loginOpenID": MessageLookupByLibrary.simpleMessage("OpenID"),
|
"loginOpenID": MessageLookupByLibrary.simpleMessage("OpenID"),
|
||||||
"loginPassword": MessageLookupByLibrary.simpleMessage("Password"),
|
"loginPassword": MessageLookupByLibrary.simpleMessage("Password"),
|
||||||
"loginServerClick": MessageLookupByLibrary.simpleMessage("Click here"),
|
"loginServerClick": MessageLookupByLibrary.simpleMessage("Click here"),
|
||||||
"loginServerConnected": MessageLookupByLibrary.simpleMessage(
|
"loginServerConnected": MessageLookupByLibrary.simpleMessage(
|
||||||
"Server connected, please login",
|
"Server connected, please login",
|
||||||
),
|
),
|
||||||
"loginServerNo": MessageLookupByLibrary.simpleMessage(
|
"loginServerNo": MessageLookupByLibrary.simpleMessage(
|
||||||
"Do not have a server? ",
|
"Do not have a server? ",
|
||||||
),
|
),
|
||||||
"loginServerNoConnected": MessageLookupByLibrary.simpleMessage(
|
"loginServerNoConnected": MessageLookupByLibrary.simpleMessage(
|
||||||
"Please enter the URL of your AudiobookShelf Server",
|
"Please enter the URL of your AudiobookShelf Server",
|
||||||
),
|
),
|
||||||
"loginServerNot": m5,
|
"loginServerNot": m5,
|
||||||
"loginServerTo": MessageLookupByLibrary.simpleMessage(
|
"loginServerTo": MessageLookupByLibrary.simpleMessage(
|
||||||
" to know how to setup a server.",
|
" to know how to setup a server.",
|
||||||
),
|
),
|
||||||
"loginTitle": m6,
|
"loginTitle": m6,
|
||||||
"loginToken": MessageLookupByLibrary.simpleMessage("Token"),
|
"loginToken": MessageLookupByLibrary.simpleMessage("Token"),
|
||||||
"loginUsername": MessageLookupByLibrary.simpleMessage("Username"),
|
"loginUsername": MessageLookupByLibrary.simpleMessage("Username"),
|
||||||
"logs": MessageLookupByLibrary.simpleMessage("Logs"),
|
"logs": MessageLookupByLibrary.simpleMessage("Logs"),
|
||||||
"nmpSettingsBackward": MessageLookupByLibrary.simpleMessage(
|
"nmpSettingsBackward": MessageLookupByLibrary.simpleMessage(
|
||||||
"Backward Interval",
|
"Backward Interval",
|
||||||
),
|
),
|
||||||
"nmpSettingsForward": MessageLookupByLibrary.simpleMessage(
|
"nmpSettingsForward": MessageLookupByLibrary.simpleMessage(
|
||||||
"Forward Interval",
|
"Forward Interval",
|
||||||
),
|
),
|
||||||
"nmpSettingsMediaControls": MessageLookupByLibrary.simpleMessage(
|
"nmpSettingsMediaControls": MessageLookupByLibrary.simpleMessage(
|
||||||
"Media Controls",
|
"Media Controls",
|
||||||
),
|
),
|
||||||
"nmpSettingsMediaControlsDescription":
|
"nmpSettingsMediaControlsDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"Select the media controls to display",
|
||||||
"Select the media controls to display",
|
),
|
||||||
),
|
"nmpSettingsSelectOne": MessageLookupByLibrary.simpleMessage(
|
||||||
"nmpSettingsSelectOne": MessageLookupByLibrary.simpleMessage(
|
"Select a field below to insert it",
|
||||||
"Select a field below to insert it",
|
),
|
||||||
),
|
"nmpSettingsShowChapterProgress": MessageLookupByLibrary.simpleMessage(
|
||||||
"nmpSettingsShowChapterProgress": MessageLookupByLibrary.simpleMessage(
|
"Show Chapter Progress",
|
||||||
"Show Chapter Progress",
|
),
|
||||||
),
|
"nmpSettingsShowChapterProgressDescription":
|
||||||
"nmpSettingsShowChapterProgressDescription":
|
MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage(
|
|
||||||
"Instead of the overall progress of the book",
|
"Instead of the overall progress of the book",
|
||||||
),
|
),
|
||||||
"nmpSettingsSubTitle": MessageLookupByLibrary.simpleMessage(
|
"nmpSettingsSubTitle": MessageLookupByLibrary.simpleMessage(
|
||||||
"Secondary Title",
|
"Secondary Title",
|
||||||
),
|
),
|
||||||
"nmpSettingsSubTitleDescription": MessageLookupByLibrary.simpleMessage(
|
"nmpSettingsSubTitleDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"The subtitle of the notification\n",
|
"The subtitle of the notification\n",
|
||||||
),
|
),
|
||||||
"nmpSettingsTitle":
|
"nmpSettingsTitle": MessageLookupByLibrary.simpleMessage("Primary Title"),
|
||||||
MessageLookupByLibrary.simpleMessage("Primary Title"),
|
"nmpSettingsTitleDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"nmpSettingsTitleDescription": MessageLookupByLibrary.simpleMessage(
|
"The title of the notification\n",
|
||||||
"The title of the notification\n",
|
),
|
||||||
),
|
"no": MessageLookupByLibrary.simpleMessage("No"),
|
||||||
"no": MessageLookupByLibrary.simpleMessage("No"),
|
"notImplemented": MessageLookupByLibrary.simpleMessage("Not implemented"),
|
||||||
"notImplemented":
|
"notificationMediaPlayer": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage("Not implemented"),
|
"Notification Media Player",
|
||||||
"notificationMediaPlayer": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Notification Media Player",
|
"notificationMediaPlayerDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Customize the media player in notifications",
|
||||||
"notificationMediaPlayerDescription":
|
),
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"ok": MessageLookupByLibrary.simpleMessage("OK"),
|
||||||
"Customize the media player in notifications",
|
"pause": MessageLookupByLibrary.simpleMessage("Pause"),
|
||||||
),
|
"play": MessageLookupByLibrary.simpleMessage("Play"),
|
||||||
"ok": MessageLookupByLibrary.simpleMessage("OK"),
|
"playerSettings": MessageLookupByLibrary.simpleMessage("Player Settings"),
|
||||||
"pause": MessageLookupByLibrary.simpleMessage("Pause"),
|
"playerSettingsCompleteTime": MessageLookupByLibrary.simpleMessage(
|
||||||
"play": MessageLookupByLibrary.simpleMessage("Play"),
|
"Mark Complete When Time Left",
|
||||||
"playerSettings":
|
),
|
||||||
MessageLookupByLibrary.simpleMessage("Player Settings"),
|
"playerSettingsCompleteTimeDescriptionHead":
|
||||||
"playerSettingsCompleteTime": MessageLookupByLibrary.simpleMessage(
|
MessageLookupByLibrary.simpleMessage("Mark complete when less than "),
|
||||||
"Mark Complete When Time Left",
|
"playerSettingsCompleteTimeDescriptionTail":
|
||||||
),
|
MessageLookupByLibrary.simpleMessage(" left in the book"),
|
||||||
"playerSettingsCompleteTimeDescriptionHead":
|
"playerSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"Customize the player settings",
|
||||||
"Mark complete when less than "),
|
),
|
||||||
"playerSettingsCompleteTimeDescriptionTail":
|
"playerSettingsDisplay": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage(" left in the book"),
|
"Display Settings",
|
||||||
"playerSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Customize the player settings",
|
"playerSettingsDisplayChapterProgress":
|
||||||
),
|
MessageLookupByLibrary.simpleMessage("Show Chapter Progress"),
|
||||||
"playerSettingsDisplay": MessageLookupByLibrary.simpleMessage(
|
"playerSettingsDisplayChapterProgressDescription":
|
||||||
"Display Settings",
|
MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
|
||||||
"playerSettingsDisplayChapterProgress":
|
|
||||||
MessageLookupByLibrary.simpleMessage("Show Chapter Progress"),
|
|
||||||
"playerSettingsDisplayChapterProgressDescription":
|
|
||||||
MessageLookupByLibrary.simpleMessage(
|
|
||||||
"Show the progress of the current chapter in the player",
|
"Show the progress of the current chapter in the player",
|
||||||
),
|
),
|
||||||
"playerSettingsDisplayTotalProgress":
|
"playerSettingsDisplayTotalProgress": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"Show Total Progress",
|
||||||
"Show Total Progress",
|
),
|
||||||
),
|
"playerSettingsDisplayTotalProgressDescription":
|
||||||
"playerSettingsDisplayTotalProgressDescription":
|
MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage(
|
|
||||||
"Show the total progress of the book in the player",
|
"Show the total progress of the book in the player",
|
||||||
),
|
),
|
||||||
"playerSettingsPlaybackInterval": MessageLookupByLibrary.simpleMessage(
|
"playerSettingsPlaybackInterval": MessageLookupByLibrary.simpleMessage(
|
||||||
"Playback Report Interval",
|
"Playback Report Interval",
|
||||||
),
|
),
|
||||||
"playerSettingsPlaybackIntervalDescriptionHead":
|
"playerSettingsPlaybackIntervalDescriptionHead":
|
||||||
MessageLookupByLibrary.simpleMessage("Report progress every "),
|
MessageLookupByLibrary.simpleMessage("Report progress every "),
|
||||||
"playerSettingsPlaybackIntervalDescriptionTail":
|
"playerSettingsPlaybackIntervalDescriptionTail":
|
||||||
MessageLookupByLibrary.simpleMessage(" to the server"),
|
MessageLookupByLibrary.simpleMessage(" to the server"),
|
||||||
"playerSettingsPlaybackReporting": MessageLookupByLibrary.simpleMessage(
|
"playerSettingsPlaybackReporting": MessageLookupByLibrary.simpleMessage(
|
||||||
"Playback Reporting",
|
"Playback Reporting",
|
||||||
),
|
),
|
||||||
"playerSettingsPlaybackReportingIgnore":
|
"playerSettingsPlaybackReportingIgnore":
|
||||||
MessageLookupByLibrary.simpleMessage(
|
MessageLookupByLibrary.simpleMessage(
|
||||||
"Ignore Playback Position Less Than",
|
"Ignore Playback Position Less Than",
|
||||||
),
|
),
|
||||||
"playerSettingsPlaybackReportingMinimum":
|
"playerSettingsPlaybackReportingMinimum":
|
||||||
MessageLookupByLibrary.simpleMessage("Minimum Position to Report"),
|
MessageLookupByLibrary.simpleMessage("Minimum Position to Report"),
|
||||||
"playerSettingsPlaybackReportingMinimumDescriptionHead":
|
"playerSettingsPlaybackReportingMinimumDescriptionHead":
|
||||||
MessageLookupByLibrary.simpleMessage(
|
MessageLookupByLibrary.simpleMessage(
|
||||||
"Do not report playback for the first ",
|
"Do not report playback for the first ",
|
||||||
),
|
),
|
||||||
"playerSettingsPlaybackReportingMinimumDescriptionTail":
|
"playerSettingsPlaybackReportingMinimumDescriptionTail":
|
||||||
MessageLookupByLibrary.simpleMessage("of the book"),
|
MessageLookupByLibrary.simpleMessage("of the book"),
|
||||||
"playerSettingsRememberForEveryBook":
|
"playerSettingsRememberForEveryBook": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"Remember Player Settings for Every Book",
|
||||||
"Remember Player Settings for Every Book",
|
),
|
||||||
),
|
"playerSettingsRememberForEveryBookDescription":
|
||||||
"playerSettingsRememberForEveryBookDescription":
|
MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage(
|
|
||||||
"Settings like speed, loudness, etc. will be remembered for every book",
|
"Settings like speed, loudness, etc. will be remembered for every book",
|
||||||
),
|
),
|
||||||
"playerSettingsSpeed": MessageLookupByLibrary.simpleMessage("Speed"),
|
"playerSettingsSpeed": MessageLookupByLibrary.simpleMessage("Speed"),
|
||||||
"playerSettingsSpeedDefault": MessageLookupByLibrary.simpleMessage(
|
"playerSettingsSpeedDefault": MessageLookupByLibrary.simpleMessage(
|
||||||
"Default Speed",
|
"Default Speed",
|
||||||
),
|
),
|
||||||
"playerSettingsSpeedOptions": MessageLookupByLibrary.simpleMessage(
|
"playerSettingsSpeedOptions": MessageLookupByLibrary.simpleMessage(
|
||||||
"Speed Options",
|
"Speed Options",
|
||||||
),
|
),
|
||||||
"playerSettingsSpeedOptionsSelect":
|
"playerSettingsSpeedOptionsSelect": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"Select Speed Options",
|
||||||
"Select Speed Options",
|
),
|
||||||
),
|
"playerSettingsSpeedOptionsSelectAdd": MessageLookupByLibrary.simpleMessage(
|
||||||
"playerSettingsSpeedOptionsSelectAdd":
|
"Add Speed Option",
|
||||||
MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Add Speed Option",
|
"playerSettingsSpeedOptionsSelectAddHelper":
|
||||||
),
|
MessageLookupByLibrary.simpleMessage("Enter a new speed option to add"),
|
||||||
"playerSettingsSpeedOptionsSelectAddHelper":
|
"playerSettingsSpeedSelect": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"Select Speed",
|
||||||
"Enter a new speed option to add"),
|
),
|
||||||
"playerSettingsSpeedSelect": MessageLookupByLibrary.simpleMessage(
|
"playerSettingsSpeedSelectHelper": MessageLookupByLibrary.simpleMessage(
|
||||||
"Select Speed",
|
"Enter the speed you want to set when playing for the first time",
|
||||||
),
|
),
|
||||||
"playerSettingsSpeedSelectHelper": MessageLookupByLibrary.simpleMessage(
|
"playlistsMine": MessageLookupByLibrary.simpleMessage("My Playlists"),
|
||||||
"Enter the speed you want to set when playing for the first time",
|
"readLess": MessageLookupByLibrary.simpleMessage("Read Less"),
|
||||||
),
|
"readMore": MessageLookupByLibrary.simpleMessage("Read More"),
|
||||||
"playlistsMine": MessageLookupByLibrary.simpleMessage("My Playlists"),
|
"refresh": MessageLookupByLibrary.simpleMessage("Refresh"),
|
||||||
"readLess": MessageLookupByLibrary.simpleMessage("Read Less"),
|
"reset": MessageLookupByLibrary.simpleMessage("Reset"),
|
||||||
"readMore": MessageLookupByLibrary.simpleMessage("Read More"),
|
"resetAppSettings": MessageLookupByLibrary.simpleMessage(
|
||||||
"refresh": MessageLookupByLibrary.simpleMessage("Refresh"),
|
"Reset App Settings",
|
||||||
"reset": MessageLookupByLibrary.simpleMessage("Reset"),
|
),
|
||||||
"resetAppSettings": MessageLookupByLibrary.simpleMessage(
|
"resetAppSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"Reset App Settings",
|
"Reset the app settings to the default values",
|
||||||
),
|
),
|
||||||
"resetAppSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
"resetAppSettingsDialog": MessageLookupByLibrary.simpleMessage(
|
||||||
"Reset the app settings to the default values",
|
"Are you sure you want to reset the app settings?",
|
||||||
),
|
),
|
||||||
"resetAppSettingsDialog": MessageLookupByLibrary.simpleMessage(
|
"restore": MessageLookupByLibrary.simpleMessage("Restore"),
|
||||||
"Are you sure you want to reset the app settings?",
|
"restoreBackup": MessageLookupByLibrary.simpleMessage("Restore Backup"),
|
||||||
),
|
"restoreBackupHint": MessageLookupByLibrary.simpleMessage(
|
||||||
"restore": MessageLookupByLibrary.simpleMessage("Restore"),
|
"Paste the backup here",
|
||||||
"restoreBackup": MessageLookupByLibrary.simpleMessage("Restore Backup"),
|
),
|
||||||
"restoreBackupHint": MessageLookupByLibrary.simpleMessage(
|
"restoreBackupInvalid": MessageLookupByLibrary.simpleMessage(
|
||||||
"Paste the backup here",
|
"Invalid backup",
|
||||||
),
|
),
|
||||||
"restoreBackupInvalid": MessageLookupByLibrary.simpleMessage(
|
"restoreBackupSuccess": MessageLookupByLibrary.simpleMessage(
|
||||||
"Invalid backup",
|
"Settings restored",
|
||||||
),
|
),
|
||||||
"restoreBackupSuccess": MessageLookupByLibrary.simpleMessage(
|
"restoreBackupValidator": MessageLookupByLibrary.simpleMessage(
|
||||||
"Settings restored",
|
"Please paste the backup here",
|
||||||
),
|
),
|
||||||
"restoreBackupValidator": MessageLookupByLibrary.simpleMessage(
|
"restoreDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"Please paste the backup here",
|
"Restore the app settings from the backup",
|
||||||
),
|
),
|
||||||
"restoreDescription": MessageLookupByLibrary.simpleMessage(
|
"resume": MessageLookupByLibrary.simpleMessage("Resume"),
|
||||||
"Restore the app settings from the backup",
|
"retry": MessageLookupByLibrary.simpleMessage("Retry"),
|
||||||
),
|
"settings": MessageLookupByLibrary.simpleMessage("Settings"),
|
||||||
"resume": MessageLookupByLibrary.simpleMessage("Resume"),
|
"shakeAction": MessageLookupByLibrary.simpleMessage("Shake Action"),
|
||||||
"retry": MessageLookupByLibrary.simpleMessage("Retry"),
|
"shakeActionDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"settings": MessageLookupByLibrary.simpleMessage("Settings"),
|
"The action to perform when a shake is detected",
|
||||||
"shakeAction": MessageLookupByLibrary.simpleMessage("Shake Action"),
|
),
|
||||||
"shakeActionDescription": MessageLookupByLibrary.simpleMessage(
|
"shakeActivationThreshold": MessageLookupByLibrary.simpleMessage(
|
||||||
"The action to perform when a shake is detected",
|
"Shake Activation Threshold",
|
||||||
),
|
),
|
||||||
"shakeActivationThreshold": MessageLookupByLibrary.simpleMessage(
|
"shakeActivationThresholdDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"Shake Activation Threshold",
|
"The higher the threshold, the harder you need to shake",
|
||||||
),
|
),
|
||||||
"shakeActivationThresholdDescription":
|
"shakeDetector": MessageLookupByLibrary.simpleMessage("Shake Detector"),
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"shakeDetectorDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"The higher the threshold, the harder you need to shake",
|
"Customize the shake detector settings",
|
||||||
),
|
),
|
||||||
"shakeDetector": MessageLookupByLibrary.simpleMessage("Shake Detector"),
|
"shakeDetectorEnable": MessageLookupByLibrary.simpleMessage(
|
||||||
"shakeDetectorDescription": MessageLookupByLibrary.simpleMessage(
|
"Enable Shake Detection",
|
||||||
"Customize the shake detector settings",
|
),
|
||||||
),
|
"shakeDetectorEnableDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"shakeDetectorEnable": MessageLookupByLibrary.simpleMessage(
|
"Enable shake detection to do various actions",
|
||||||
"Enable Shake Detection",
|
),
|
||||||
),
|
"shakeDetectorSettings": MessageLookupByLibrary.simpleMessage(
|
||||||
"shakeDetectorEnableDescription": MessageLookupByLibrary.simpleMessage(
|
"Shake Detector Settings",
|
||||||
"Enable shake detection to do various actions",
|
),
|
||||||
),
|
"shakeFeedback": MessageLookupByLibrary.simpleMessage("Shake Feedback"),
|
||||||
"shakeDetectorSettings": MessageLookupByLibrary.simpleMessage(
|
"shakeFeedbackDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"Shake Detector Settings",
|
"The feedback to give when a shake is detected",
|
||||||
),
|
),
|
||||||
"shakeFeedback": MessageLookupByLibrary.simpleMessage("Shake Feedback"),
|
"shakeSelectAction": MessageLookupByLibrary.simpleMessage(
|
||||||
"shakeFeedbackDescription": MessageLookupByLibrary.simpleMessage(
|
"Select Shake Action",
|
||||||
"The feedback to give when a shake is detected",
|
),
|
||||||
),
|
"shakeSelectActivationThreshold": MessageLookupByLibrary.simpleMessage(
|
||||||
"shakeSelectAction": MessageLookupByLibrary.simpleMessage(
|
"Select Shake Activation Threshold",
|
||||||
"Select Shake Action",
|
),
|
||||||
),
|
"shakeSelectActivationThresholdHelper":
|
||||||
"shakeSelectActivationThreshold": MessageLookupByLibrary.simpleMessage(
|
MessageLookupByLibrary.simpleMessage(
|
||||||
"Select Shake Activation Threshold",
|
|
||||||
),
|
|
||||||
"shakeSelectActivationThresholdHelper":
|
|
||||||
MessageLookupByLibrary.simpleMessage(
|
|
||||||
"Enter a number to set the threshold in m/s²",
|
"Enter a number to set the threshold in m/s²",
|
||||||
),
|
),
|
||||||
"shakeSelectFeedback": MessageLookupByLibrary.simpleMessage(
|
"shakeSelectFeedback": MessageLookupByLibrary.simpleMessage(
|
||||||
"Select Shake Feedback",
|
"Select Shake Feedback",
|
||||||
),
|
),
|
||||||
"themeMode": MessageLookupByLibrary.simpleMessage("Theme Mode"),
|
"themeMode": MessageLookupByLibrary.simpleMessage("Theme Mode"),
|
||||||
"themeModeDark": MessageLookupByLibrary.simpleMessage("Dark"),
|
"themeModeDark": MessageLookupByLibrary.simpleMessage("Dark"),
|
||||||
"themeModeHighContrast": MessageLookupByLibrary.simpleMessage(
|
"themeModeHighContrast": MessageLookupByLibrary.simpleMessage(
|
||||||
"High Contrast Mode",
|
"High Contrast Mode",
|
||||||
),
|
),
|
||||||
"themeModeHighContrastDescription":
|
"themeModeHighContrastDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"Increase the contrast between the background and the text",
|
||||||
"Increase the contrast between the background and the text",
|
),
|
||||||
),
|
"themeModeLight": MessageLookupByLibrary.simpleMessage("Light"),
|
||||||
"themeModeLight": MessageLookupByLibrary.simpleMessage("Light"),
|
"themeModeSystem": MessageLookupByLibrary.simpleMessage("System"),
|
||||||
"themeModeSystem": MessageLookupByLibrary.simpleMessage("System"),
|
"themeSettings": MessageLookupByLibrary.simpleMessage("Theme Settings"),
|
||||||
"themeSettings": MessageLookupByLibrary.simpleMessage("Theme Settings"),
|
"themeSettingsColors": MessageLookupByLibrary.simpleMessage(
|
||||||
"themeSettingsColors": MessageLookupByLibrary.simpleMessage(
|
"Material Theme from System",
|
||||||
"Material Theme from System",
|
),
|
||||||
),
|
"themeSettingsColorsAndroid": MessageLookupByLibrary.simpleMessage(
|
||||||
"themeSettingsColorsAndroid": MessageLookupByLibrary.simpleMessage(
|
"Use Material You",
|
||||||
"Use Material You",
|
),
|
||||||
),
|
"themeSettingsColorsBook": MessageLookupByLibrary.simpleMessage(
|
||||||
"themeSettingsColorsBook": MessageLookupByLibrary.simpleMessage(
|
"Adaptive Theme on Item Page",
|
||||||
"Adaptive Theme on Item Page",
|
),
|
||||||
),
|
"themeSettingsColorsBookDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"themeSettingsColorsBookDescription":
|
"Get fancy with the colors on the item page at the cost of some performance",
|
||||||
MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Get fancy with the colors on the item page at the cost of some performance",
|
"themeSettingsColorsCurrent": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"Adapt theme from currently playing item",
|
||||||
"themeSettingsColorsCurrent": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"Adapt theme from currently playing item",
|
"themeSettingsColorsCurrentDescription":
|
||||||
),
|
MessageLookupByLibrary.simpleMessage(
|
||||||
"themeSettingsColorsCurrentDescription":
|
|
||||||
MessageLookupByLibrary.simpleMessage(
|
|
||||||
"Use the theme colors from the currently playing item for the app",
|
"Use the theme colors from the currently playing item for the app",
|
||||||
),
|
),
|
||||||
"themeSettingsColorsDescription": MessageLookupByLibrary.simpleMessage(
|
"themeSettingsColorsDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"Use the system theme colors for the app",
|
"Use the system theme colors for the app",
|
||||||
),
|
),
|
||||||
"themeSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
"themeSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"Customize the app theme",
|
"Customize the app theme",
|
||||||
),
|
),
|
||||||
"timeSecond": m7,
|
"timeSecond": m7,
|
||||||
"unknown": MessageLookupByLibrary.simpleMessage("Unknown"),
|
"unknown": MessageLookupByLibrary.simpleMessage("Unknown"),
|
||||||
"webVersion": MessageLookupByLibrary.simpleMessage("Web Version"),
|
"webVersion": MessageLookupByLibrary.simpleMessage("Web Version"),
|
||||||
"yes": MessageLookupByLibrary.simpleMessage("Yes"),
|
"yes": MessageLookupByLibrary.simpleMessage("Yes"),
|
||||||
"you": MessageLookupByLibrary.simpleMessage("You"),
|
"you": MessageLookupByLibrary.simpleMessage("You"),
|
||||||
"youTooltip": MessageLookupByLibrary.simpleMessage(
|
"youTooltip": MessageLookupByLibrary.simpleMessage(
|
||||||
"Your Profile and Settings",
|
"Your Profile and Settings",
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,367 +38,338 @@ class MessageLookup extends MessageLookupByLibrary {
|
||||||
|
|
||||||
final messages = _notInlinedMessages(_notInlinedMessages);
|
final messages = _notInlinedMessages(_notInlinedMessages);
|
||||||
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
|
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
|
||||||
"account": MessageLookupByLibrary.simpleMessage("账户"),
|
"account": MessageLookupByLibrary.simpleMessage("账户"),
|
||||||
"accountAddNewServer": MessageLookupByLibrary.simpleMessage("添加新服务器"),
|
"accountAddNewServer": MessageLookupByLibrary.simpleMessage("添加新服务器"),
|
||||||
"accountAddUser": MessageLookupByLibrary.simpleMessage("添加用户"),
|
"accountAddUser": MessageLookupByLibrary.simpleMessage("添加用户"),
|
||||||
"accountAddUserDialog": m0,
|
"accountAddUserDialog": m0,
|
||||||
"accountAddUserSuccessDialog": MessageLookupByLibrary.simpleMessage(
|
"accountAddUserSuccessDialog": MessageLookupByLibrary.simpleMessage(
|
||||||
"用户添加成功!切换?",
|
"用户添加成功!切换?",
|
||||||
),
|
),
|
||||||
"accountAddUserTooltip": MessageLookupByLibrary.simpleMessage("添加新服务器"),
|
"accountAddUserTooltip": MessageLookupByLibrary.simpleMessage("添加新服务器"),
|
||||||
"accountAnonymous": MessageLookupByLibrary.simpleMessage("匿名"),
|
"accountAnonymous": MessageLookupByLibrary.simpleMessage("匿名"),
|
||||||
"accountDeleteServer": MessageLookupByLibrary.simpleMessage("删除服务器"),
|
"accountDeleteServer": MessageLookupByLibrary.simpleMessage("删除服务器"),
|
||||||
"accountInvalidURL": MessageLookupByLibrary.simpleMessage("无效网址"),
|
"accountInvalidURL": MessageLookupByLibrary.simpleMessage("无效网址"),
|
||||||
"accountManage": MessageLookupByLibrary.simpleMessage("帐户管理"),
|
"accountManage": MessageLookupByLibrary.simpleMessage("帐户管理"),
|
||||||
"accountRegisteredServers":
|
"accountRegisteredServers": MessageLookupByLibrary.simpleMessage("已注册服务器"),
|
||||||
MessageLookupByLibrary.simpleMessage("已注册服务器"),
|
"accountRemoveServerAndUsers": MessageLookupByLibrary.simpleMessage(
|
||||||
"accountRemoveServerAndUsers": MessageLookupByLibrary.simpleMessage(
|
"删除服务器和用户",
|
||||||
"删除服务器和用户",
|
),
|
||||||
),
|
"accountRemoveServerAndUsersHead": MessageLookupByLibrary.simpleMessage(
|
||||||
"accountRemoveServerAndUsersHead": MessageLookupByLibrary.simpleMessage(
|
"这将删除服务器 ",
|
||||||
"这将删除服务器 ",
|
),
|
||||||
),
|
"accountRemoveServerAndUsersTail": MessageLookupByLibrary.simpleMessage(
|
||||||
"accountRemoveServerAndUsersTail": MessageLookupByLibrary.simpleMessage(
|
" 以及该应用程序中所有用户的登录信息。",
|
||||||
" 以及该应用程序中所有用户的登录信息。",
|
),
|
||||||
),
|
"accountRemoveUserLogin": MessageLookupByLibrary.simpleMessage("删除用户登录"),
|
||||||
"accountRemoveUserLogin":
|
"accountRemoveUserLoginHead": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage("删除用户登录"),
|
"这将删除用户 ",
|
||||||
"accountRemoveUserLoginHead": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"这将删除用户 ",
|
"accountRemoveUserLoginTail": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
" 的登录详细信息。",
|
||||||
"accountRemoveUserLoginTail": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
" 的登录详细信息。",
|
"accountServerURI": MessageLookupByLibrary.simpleMessage("服务器地址"),
|
||||||
),
|
"accountSwitch": MessageLookupByLibrary.simpleMessage("切换账户"),
|
||||||
"accountServerURI": MessageLookupByLibrary.simpleMessage("服务器地址"),
|
"accountUsersCount": m1,
|
||||||
"accountSwitch": MessageLookupByLibrary.simpleMessage("切换账户"),
|
"appSettings": MessageLookupByLibrary.simpleMessage("应用设置"),
|
||||||
"accountUsersCount": m1,
|
"appearance": MessageLookupByLibrary.simpleMessage("外观"),
|
||||||
"appSettings": MessageLookupByLibrary.simpleMessage("应用设置"),
|
"autoSleepTimerSettings": MessageLookupByLibrary.simpleMessage("自动睡眠定时器设置"),
|
||||||
"appearance": MessageLookupByLibrary.simpleMessage("外观"),
|
"autoTurnOnSleepTimer": MessageLookupByLibrary.simpleMessage("自动开启睡眠定时器"),
|
||||||
"autoSleepTimerSettings":
|
"autoTurnOnTimer": MessageLookupByLibrary.simpleMessage("自动开启定时器"),
|
||||||
MessageLookupByLibrary.simpleMessage("自动睡眠定时器设置"),
|
"autoTurnOnTimerAlways": MessageLookupByLibrary.simpleMessage("始终自动开启定时器"),
|
||||||
"autoTurnOnSleepTimer":
|
"autoTurnOnTimerAlwaysDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage("自动开启睡眠定时器"),
|
"总是打开睡眠定时器",
|
||||||
"autoTurnOnTimer": MessageLookupByLibrary.simpleMessage("自动开启定时器"),
|
),
|
||||||
"autoTurnOnTimerAlways":
|
"autoTurnOnTimerDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage("始终自动开启定时器"),
|
"根据一天中的时间自动打开睡眠定时器",
|
||||||
"autoTurnOnTimerAlwaysDescription":
|
),
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"autoTurnOnTimerFrom": MessageLookupByLibrary.simpleMessage("从"),
|
||||||
"总是打开睡眠定时器",
|
"autoTurnOnTimerFromDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"在指定时间打开睡眠定时器",
|
||||||
"autoTurnOnTimerDescription": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"根据一天中的时间自动打开睡眠定时器",
|
"autoTurnOnTimerUntil": MessageLookupByLibrary.simpleMessage("直到"),
|
||||||
),
|
"autoTurnOnTimerUntilDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"autoTurnOnTimerFrom": MessageLookupByLibrary.simpleMessage("从"),
|
"在指定时间关闭睡眠定时器",
|
||||||
"autoTurnOnTimerFromDescription": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"在指定时间打开睡眠定时器",
|
"automaticallyDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"根据一天中的时间自动打开睡眠定时器",
|
||||||
"autoTurnOnTimerUntil": MessageLookupByLibrary.simpleMessage("直到"),
|
),
|
||||||
"autoTurnOnTimerUntilDescription": MessageLookupByLibrary.simpleMessage(
|
"backup": MessageLookupByLibrary.simpleMessage("备份"),
|
||||||
"在指定时间关闭睡眠定时器",
|
"backupAndRestore": MessageLookupByLibrary.simpleMessage("备份与恢复"),
|
||||||
),
|
"bookAbout": MessageLookupByLibrary.simpleMessage("关于本书"),
|
||||||
"automaticallyDescription": MessageLookupByLibrary.simpleMessage(
|
"bookAboutDefault": MessageLookupByLibrary.simpleMessage("抱歉,找不到描述"),
|
||||||
"根据一天中的时间自动打开睡眠定时器",
|
"bookAuthors": MessageLookupByLibrary.simpleMessage("作者"),
|
||||||
),
|
"bookDownloads": MessageLookupByLibrary.simpleMessage("下载"),
|
||||||
"backup": MessageLookupByLibrary.simpleMessage("备份"),
|
"bookGenres": MessageLookupByLibrary.simpleMessage("风格"),
|
||||||
"backupAndRestore": MessageLookupByLibrary.simpleMessage("备份与恢复"),
|
"bookMetadataAbridged": MessageLookupByLibrary.simpleMessage("删节版"),
|
||||||
"bookAbout": MessageLookupByLibrary.simpleMessage("关于本书"),
|
"bookMetadataLength": MessageLookupByLibrary.simpleMessage("持续时间"),
|
||||||
"bookAboutDefault": MessageLookupByLibrary.simpleMessage("抱歉,找不到描述"),
|
"bookMetadataPublished": MessageLookupByLibrary.simpleMessage("发布年份"),
|
||||||
"bookAuthors": MessageLookupByLibrary.simpleMessage("作者"),
|
"bookMetadataUnabridged": MessageLookupByLibrary.simpleMessage("未删节版"),
|
||||||
"bookDownloads": MessageLookupByLibrary.simpleMessage("下载"),
|
"bookSeries": MessageLookupByLibrary.simpleMessage("系列"),
|
||||||
"bookGenres": MessageLookupByLibrary.simpleMessage("风格"),
|
"bookShelveEmpty": MessageLookupByLibrary.simpleMessage("重试"),
|
||||||
"bookMetadataAbridged": MessageLookupByLibrary.simpleMessage("删节版"),
|
"bookShelveEmptyText": MessageLookupByLibrary.simpleMessage("未查询到书架"),
|
||||||
"bookMetadataLength": MessageLookupByLibrary.simpleMessage("持续时间"),
|
"cancel": MessageLookupByLibrary.simpleMessage("取消"),
|
||||||
"bookMetadataPublished": MessageLookupByLibrary.simpleMessage("发布年份"),
|
"chapterNotFound": MessageLookupByLibrary.simpleMessage("未找到章节"),
|
||||||
"bookMetadataUnabridged": MessageLookupByLibrary.simpleMessage("未删节版"),
|
"chapterSelect": MessageLookupByLibrary.simpleMessage("选择章节"),
|
||||||
"bookSeries": MessageLookupByLibrary.simpleMessage("系列"),
|
"chapterSkip": MessageLookupByLibrary.simpleMessage("跳过章节片头片尾"),
|
||||||
"bookShelveEmpty": MessageLookupByLibrary.simpleMessage("重试"),
|
"chapterSkipEnd": MessageLookupByLibrary.simpleMessage("跳过章节片尾 "),
|
||||||
"bookShelveEmptyText": MessageLookupByLibrary.simpleMessage("未查询到书架"),
|
"chapterSkipOpen": MessageLookupByLibrary.simpleMessage("跳过章节片头 "),
|
||||||
"cancel": MessageLookupByLibrary.simpleMessage("取消"),
|
"chapters": MessageLookupByLibrary.simpleMessage("章节列表"),
|
||||||
"chapterNotFound": MessageLookupByLibrary.simpleMessage("未找到章节"),
|
"copyToClipboard": MessageLookupByLibrary.simpleMessage("复制到剪贴板"),
|
||||||
"chapterSelect": MessageLookupByLibrary.simpleMessage("选择章节"),
|
"copyToClipboardDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"chapterSkip": MessageLookupByLibrary.simpleMessage("跳过章节片头片尾"),
|
"将应用程序设置复制到剪贴板",
|
||||||
"chapterSkipEnd": MessageLookupByLibrary.simpleMessage("跳过章节片尾 "),
|
),
|
||||||
"chapterSkipOpen": MessageLookupByLibrary.simpleMessage("跳过章节片头 "),
|
"copyToClipboardToast": MessageLookupByLibrary.simpleMessage("设置已复制到剪贴板"),
|
||||||
"chapters": MessageLookupByLibrary.simpleMessage("章节列表"),
|
"delete": MessageLookupByLibrary.simpleMessage("删除"),
|
||||||
"copyToClipboard": MessageLookupByLibrary.simpleMessage("复制到剪贴板"),
|
"deleteDialog": m2,
|
||||||
"copyToClipboardDescription": MessageLookupByLibrary.simpleMessage(
|
"deleted": m3,
|
||||||
"将应用程序设置复制到剪贴板",
|
"downloadSettings": MessageLookupByLibrary.simpleMessage("下载设置"),
|
||||||
),
|
"downloadSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"copyToClipboardToast":
|
"自定义下载设置",
|
||||||
MessageLookupByLibrary.simpleMessage("设置已复制到剪贴板"),
|
),
|
||||||
"delete": MessageLookupByLibrary.simpleMessage("删除"),
|
"erArmedText": MessageLookupByLibrary.simpleMessage("准备就绪"),
|
||||||
"deleteDialog": m2,
|
"erDragText": MessageLookupByLibrary.simpleMessage("下拉刷新"),
|
||||||
"deleted": m3,
|
"erDragTextUp": MessageLookupByLibrary.simpleMessage("上拉加载"),
|
||||||
"downloadSettings": MessageLookupByLibrary.simpleMessage("下载设置"),
|
"erFailedText": MessageLookupByLibrary.simpleMessage("失败"),
|
||||||
"downloadSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
"erMessageText": MessageLookupByLibrary.simpleMessage("最后更新于 %T"),
|
||||||
"自定义下载设置",
|
"erNoMoreText": MessageLookupByLibrary.simpleMessage("没有更多"),
|
||||||
),
|
"erProcessedText": MessageLookupByLibrary.simpleMessage("成功"),
|
||||||
"erArmedText": MessageLookupByLibrary.simpleMessage("准备就绪"),
|
"erProcessingText": MessageLookupByLibrary.simpleMessage("刷新..."),
|
||||||
"erDragText": MessageLookupByLibrary.simpleMessage("下拉刷新"),
|
"erReadyText": MessageLookupByLibrary.simpleMessage("刷新..."),
|
||||||
"erDragTextUp": MessageLookupByLibrary.simpleMessage("上拉加载"),
|
"explore": MessageLookupByLibrary.simpleMessage("探索"),
|
||||||
"erFailedText": MessageLookupByLibrary.simpleMessage("失败"),
|
"exploreHint": MessageLookupByLibrary.simpleMessage("搜索与探索..."),
|
||||||
"erMessageText": MessageLookupByLibrary.simpleMessage("最后更新于 %T"),
|
"exploreTooltip": MessageLookupByLibrary.simpleMessage("搜索和探索"),
|
||||||
"erNoMoreText": MessageLookupByLibrary.simpleMessage("没有更多"),
|
"general": MessageLookupByLibrary.simpleMessage("通用"),
|
||||||
"erProcessedText": MessageLookupByLibrary.simpleMessage("成功"),
|
"help": MessageLookupByLibrary.simpleMessage("Help"),
|
||||||
"erProcessingText": MessageLookupByLibrary.simpleMessage("刷新..."),
|
"home": MessageLookupByLibrary.simpleMessage("首页"),
|
||||||
"erReadyText": MessageLookupByLibrary.simpleMessage("刷新..."),
|
"homeBookContinueListening": MessageLookupByLibrary.simpleMessage("继续收听"),
|
||||||
"explore": MessageLookupByLibrary.simpleMessage("探索"),
|
"homeBookContinueListeningDescription":
|
||||||
"exploreHint": MessageLookupByLibrary.simpleMessage("搜索与探索..."),
|
MessageLookupByLibrary.simpleMessage("继续收听书架上显示播放按钮"),
|
||||||
"exploreTooltip": MessageLookupByLibrary.simpleMessage("搜索和探索"),
|
"homeBookContinueSeries": MessageLookupByLibrary.simpleMessage("继续系列"),
|
||||||
"general": MessageLookupByLibrary.simpleMessage("通用"),
|
"homeBookContinueSeriesDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"help": MessageLookupByLibrary.simpleMessage("Help"),
|
"继续系列书架上显示播放按钮",
|
||||||
"home": MessageLookupByLibrary.simpleMessage("首页"),
|
),
|
||||||
"homeBookContinueListening":
|
"homeBookDiscover": MessageLookupByLibrary.simpleMessage("发现"),
|
||||||
MessageLookupByLibrary.simpleMessage("继续收听"),
|
"homeBookListenAgain": MessageLookupByLibrary.simpleMessage("再听一遍"),
|
||||||
"homeBookContinueListeningDescription":
|
"homeBookListenAgainDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage("继续收听书架上显示播放按钮"),
|
"再听一遍书架上显示播放按钮",
|
||||||
"homeBookContinueSeries": MessageLookupByLibrary.simpleMessage("继续系列"),
|
),
|
||||||
"homeBookContinueSeriesDescription":
|
"homeBookNewestAuthors": MessageLookupByLibrary.simpleMessage("最新作者"),
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"homeBookRecentlyAdded": MessageLookupByLibrary.simpleMessage("最近添加"),
|
||||||
"继续系列书架上显示播放按钮",
|
"homeBookRecommended": MessageLookupByLibrary.simpleMessage("推荐"),
|
||||||
),
|
"homeContinueListening": MessageLookupByLibrary.simpleMessage("继续收听"),
|
||||||
"homeBookDiscover": MessageLookupByLibrary.simpleMessage("发现"),
|
"homeListenAgain": MessageLookupByLibrary.simpleMessage("再听一遍"),
|
||||||
"homeBookListenAgain": MessageLookupByLibrary.simpleMessage("再听一遍"),
|
"homePageSettings": MessageLookupByLibrary.simpleMessage("主页设置"),
|
||||||
"homeBookListenAgainDescription": MessageLookupByLibrary.simpleMessage(
|
"homePageSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"再听一遍书架上显示播放按钮",
|
"自定义主页",
|
||||||
),
|
),
|
||||||
"homeBookNewestAuthors": MessageLookupByLibrary.simpleMessage("最新作者"),
|
"homePageSettingsOtherShelves": MessageLookupByLibrary.simpleMessage(
|
||||||
"homeBookRecentlyAdded": MessageLookupByLibrary.simpleMessage("最近添加"),
|
"其他书架",
|
||||||
"homeBookRecommended": MessageLookupByLibrary.simpleMessage("推荐"),
|
),
|
||||||
"homeContinueListening": MessageLookupByLibrary.simpleMessage("继续收听"),
|
"homePageSettingsOtherShelvesDescription":
|
||||||
"homeListenAgain": MessageLookupByLibrary.simpleMessage("再听一遍"),
|
MessageLookupByLibrary.simpleMessage("显示所有剩余书架上所有书籍的播放按钮"),
|
||||||
"homePageSettings": MessageLookupByLibrary.simpleMessage("主页设置"),
|
"homePageSettingsQuickPlay": MessageLookupByLibrary.simpleMessage("继续播放"),
|
||||||
"homePageSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
"homeStartListening": MessageLookupByLibrary.simpleMessage("开始收听"),
|
||||||
"自定义主页",
|
"language": MessageLookupByLibrary.simpleMessage("语言"),
|
||||||
),
|
"languageDescription": MessageLookupByLibrary.simpleMessage("语言切换"),
|
||||||
"homePageSettingsOtherShelves": MessageLookupByLibrary.simpleMessage(
|
"library": MessageLookupByLibrary.simpleMessage("媒体库"),
|
||||||
"其他书架",
|
"libraryChange": MessageLookupByLibrary.simpleMessage("更改媒体库"),
|
||||||
),
|
"libraryEmpty": MessageLookupByLibrary.simpleMessage("没有可用的库。"),
|
||||||
"homePageSettingsOtherShelvesDescription":
|
"libraryLoadError": m4,
|
||||||
MessageLookupByLibrary.simpleMessage("显示所有剩余书架上所有书籍的播放按钮"),
|
"librarySelect": MessageLookupByLibrary.simpleMessage("选择媒体库"),
|
||||||
"homePageSettingsQuickPlay":
|
"librarySwitchTooltip": MessageLookupByLibrary.simpleMessage("切换媒体库"),
|
||||||
MessageLookupByLibrary.simpleMessage("继续播放"),
|
"libraryTooltip": MessageLookupByLibrary.simpleMessage("浏览您的媒体库"),
|
||||||
"homeStartListening": MessageLookupByLibrary.simpleMessage("开始收听"),
|
"loading": MessageLookupByLibrary.simpleMessage("加载中..."),
|
||||||
"language": MessageLookupByLibrary.simpleMessage("语言"),
|
"loginLocal": MessageLookupByLibrary.simpleMessage("Local"),
|
||||||
"languageDescription": MessageLookupByLibrary.simpleMessage("语言切换"),
|
"loginLogin": MessageLookupByLibrary.simpleMessage("登录"),
|
||||||
"library": MessageLookupByLibrary.simpleMessage("媒体库"),
|
"loginOpenID": MessageLookupByLibrary.simpleMessage("OpenID"),
|
||||||
"libraryChange": MessageLookupByLibrary.simpleMessage("更改媒体库"),
|
"loginPassword": MessageLookupByLibrary.simpleMessage("密码"),
|
||||||
"libraryEmpty": MessageLookupByLibrary.simpleMessage("没有可用的库。"),
|
"loginServerClick": MessageLookupByLibrary.simpleMessage("单击此处"),
|
||||||
"libraryLoadError": m4,
|
"loginServerConnected": MessageLookupByLibrary.simpleMessage("服务器已连接,请登录"),
|
||||||
"librarySelect": MessageLookupByLibrary.simpleMessage("选择媒体库"),
|
"loginServerNo": MessageLookupByLibrary.simpleMessage("没有服务器? "),
|
||||||
"librarySwitchTooltip": MessageLookupByLibrary.simpleMessage("切换媒体库"),
|
"loginServerNoConnected": MessageLookupByLibrary.simpleMessage(
|
||||||
"libraryTooltip": MessageLookupByLibrary.simpleMessage("浏览您的媒体库"),
|
"请输入您的AudiobookShelf服务器的URL",
|
||||||
"loading": MessageLookupByLibrary.simpleMessage("加载中..."),
|
),
|
||||||
"loginLocal": MessageLookupByLibrary.simpleMessage("Local"),
|
"loginServerNot": m5,
|
||||||
"loginLogin": MessageLookupByLibrary.simpleMessage("登录"),
|
"loginServerTo": MessageLookupByLibrary.simpleMessage(" 了解如何设置服务器。"),
|
||||||
"loginOpenID": MessageLookupByLibrary.simpleMessage("OpenID"),
|
"loginTitle": m6,
|
||||||
"loginPassword": MessageLookupByLibrary.simpleMessage("密码"),
|
"loginToken": MessageLookupByLibrary.simpleMessage("Token"),
|
||||||
"loginServerClick": MessageLookupByLibrary.simpleMessage("单击此处"),
|
"loginUsername": MessageLookupByLibrary.simpleMessage("用户名"),
|
||||||
"loginServerConnected":
|
"logs": MessageLookupByLibrary.simpleMessage("日志"),
|
||||||
MessageLookupByLibrary.simpleMessage("服务器已连接,请登录"),
|
"nmpSettingsBackward": MessageLookupByLibrary.simpleMessage("快退间隔"),
|
||||||
"loginServerNo": MessageLookupByLibrary.simpleMessage("没有服务器? "),
|
"nmpSettingsForward": MessageLookupByLibrary.simpleMessage("快进间隔"),
|
||||||
"loginServerNoConnected": MessageLookupByLibrary.simpleMessage(
|
"nmpSettingsMediaControls": MessageLookupByLibrary.simpleMessage("媒体控制"),
|
||||||
"请输入您的AudiobookShelf服务器的URL",
|
"nmpSettingsMediaControlsDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"选择要显示的媒体控件",
|
||||||
"loginServerNot": m5,
|
),
|
||||||
"loginServerTo": MessageLookupByLibrary.simpleMessage(" 了解如何设置服务器。"),
|
"nmpSettingsSelectOne": MessageLookupByLibrary.simpleMessage(
|
||||||
"loginTitle": m6,
|
"在下面选择一个字段进行插入",
|
||||||
"loginToken": MessageLookupByLibrary.simpleMessage("Token"),
|
),
|
||||||
"loginUsername": MessageLookupByLibrary.simpleMessage("用户名"),
|
"nmpSettingsShowChapterProgress": MessageLookupByLibrary.simpleMessage(
|
||||||
"logs": MessageLookupByLibrary.simpleMessage("日志"),
|
"显示章节进度",
|
||||||
"nmpSettingsBackward": MessageLookupByLibrary.simpleMessage("快退间隔"),
|
),
|
||||||
"nmpSettingsForward": MessageLookupByLibrary.simpleMessage("快进间隔"),
|
"nmpSettingsShowChapterProgressDescription":
|
||||||
"nmpSettingsMediaControls":
|
MessageLookupByLibrary.simpleMessage("而不是本书的整体进展"),
|
||||||
MessageLookupByLibrary.simpleMessage("媒体控制"),
|
"nmpSettingsSubTitle": MessageLookupByLibrary.simpleMessage("副标题"),
|
||||||
"nmpSettingsMediaControlsDescription":
|
"nmpSettingsSubTitleDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"通知的副标题\n",
|
||||||
"选择要显示的媒体控件",
|
),
|
||||||
),
|
"nmpSettingsTitle": MessageLookupByLibrary.simpleMessage("主标题"),
|
||||||
"nmpSettingsSelectOne": MessageLookupByLibrary.simpleMessage(
|
"nmpSettingsTitleDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"在下面选择一个字段进行插入",
|
"通知的标题\n",
|
||||||
),
|
),
|
||||||
"nmpSettingsShowChapterProgress": MessageLookupByLibrary.simpleMessage(
|
"no": MessageLookupByLibrary.simpleMessage("否"),
|
||||||
"显示章节进度",
|
"notImplemented": MessageLookupByLibrary.simpleMessage("未实现"),
|
||||||
),
|
"notificationMediaPlayer": MessageLookupByLibrary.simpleMessage("通知媒体播放器"),
|
||||||
"nmpSettingsShowChapterProgressDescription":
|
"notificationMediaPlayerDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage("而不是本书的整体进展"),
|
"在通知中自定义媒体播放器",
|
||||||
"nmpSettingsSubTitle": MessageLookupByLibrary.simpleMessage("副标题"),
|
),
|
||||||
"nmpSettingsSubTitleDescription": MessageLookupByLibrary.simpleMessage(
|
"ok": MessageLookupByLibrary.simpleMessage("确定"),
|
||||||
"通知的副标题\n",
|
"pause": MessageLookupByLibrary.simpleMessage("暂停"),
|
||||||
),
|
"play": MessageLookupByLibrary.simpleMessage("播放"),
|
||||||
"nmpSettingsTitle": MessageLookupByLibrary.simpleMessage("主标题"),
|
"playerSettings": MessageLookupByLibrary.simpleMessage("播放器设置"),
|
||||||
"nmpSettingsTitleDescription": MessageLookupByLibrary.simpleMessage(
|
"playerSettingsCompleteTime": MessageLookupByLibrary.simpleMessage(
|
||||||
"通知的标题\n",
|
"剩余时间标记完成",
|
||||||
),
|
),
|
||||||
"no": MessageLookupByLibrary.simpleMessage("否"),
|
"playerSettingsCompleteTimeDescriptionHead":
|
||||||
"notImplemented": MessageLookupByLibrary.simpleMessage("未实现"),
|
MessageLookupByLibrary.simpleMessage("当书中剩余时间少于 "),
|
||||||
"notificationMediaPlayer":
|
"playerSettingsCompleteTimeDescriptionTail":
|
||||||
MessageLookupByLibrary.simpleMessage("通知媒体播放器"),
|
MessageLookupByLibrary.simpleMessage(" 时,标记完成"),
|
||||||
"notificationMediaPlayerDescription":
|
"playerSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"自定义播放器设置",
|
||||||
"在通知中自定义媒体播放器",
|
),
|
||||||
),
|
"playerSettingsDisplay": MessageLookupByLibrary.simpleMessage("显示设置"),
|
||||||
"ok": MessageLookupByLibrary.simpleMessage("确定"),
|
"playerSettingsDisplayChapterProgress":
|
||||||
"pause": MessageLookupByLibrary.simpleMessage("暂停"),
|
MessageLookupByLibrary.simpleMessage("显示章节进度"),
|
||||||
"play": MessageLookupByLibrary.simpleMessage("播放"),
|
"playerSettingsDisplayChapterProgressDescription":
|
||||||
"playerSettings": MessageLookupByLibrary.simpleMessage("播放器设置"),
|
MessageLookupByLibrary.simpleMessage("在播放器中显示当前章节的进度"),
|
||||||
"playerSettingsCompleteTime": MessageLookupByLibrary.simpleMessage(
|
"playerSettingsDisplayTotalProgress": MessageLookupByLibrary.simpleMessage(
|
||||||
"剩余时间标记完成",
|
"显示总进度",
|
||||||
),
|
),
|
||||||
"playerSettingsCompleteTimeDescriptionHead":
|
"playerSettingsDisplayTotalProgressDescription":
|
||||||
MessageLookupByLibrary.simpleMessage("当书中剩余时间少于 "),
|
MessageLookupByLibrary.simpleMessage("在播放器中显示当前书籍的总进度"),
|
||||||
"playerSettingsCompleteTimeDescriptionTail":
|
"playerSettingsPlaybackInterval": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage(" 时,标记完成"),
|
"播放报告间隔",
|
||||||
"playerSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"自定义播放器设置",
|
"playerSettingsPlaybackIntervalDescriptionHead":
|
||||||
),
|
MessageLookupByLibrary.simpleMessage("每 "),
|
||||||
"playerSettingsDisplay": MessageLookupByLibrary.simpleMessage("显示设置"),
|
"playerSettingsPlaybackIntervalDescriptionTail":
|
||||||
"playerSettingsDisplayChapterProgress":
|
MessageLookupByLibrary.simpleMessage(" 向服务器报告一次进度"),
|
||||||
MessageLookupByLibrary.simpleMessage("显示章节进度"),
|
"playerSettingsPlaybackReporting": MessageLookupByLibrary.simpleMessage(
|
||||||
"playerSettingsDisplayChapterProgressDescription":
|
"回放报告",
|
||||||
MessageLookupByLibrary.simpleMessage("在播放器中显示当前章节的进度"),
|
),
|
||||||
"playerSettingsDisplayTotalProgress":
|
"playerSettingsPlaybackReportingIgnore":
|
||||||
MessageLookupByLibrary.simpleMessage(
|
MessageLookupByLibrary.simpleMessage("忽略播放位置小于"),
|
||||||
"显示总进度",
|
"playerSettingsPlaybackReportingMinimum":
|
||||||
),
|
MessageLookupByLibrary.simpleMessage("回放报告最小位置"),
|
||||||
"playerSettingsDisplayTotalProgressDescription":
|
"playerSettingsPlaybackReportingMinimumDescriptionHead":
|
||||||
MessageLookupByLibrary.simpleMessage("在播放器中显示当前书籍的总进度"),
|
MessageLookupByLibrary.simpleMessage("不要报告本书前 "),
|
||||||
"playerSettingsPlaybackInterval": MessageLookupByLibrary.simpleMessage(
|
"playerSettingsPlaybackReportingMinimumDescriptionTail":
|
||||||
"播放报告间隔",
|
MessageLookupByLibrary.simpleMessage(" 的播放"),
|
||||||
),
|
"playerSettingsRememberForEveryBook": MessageLookupByLibrary.simpleMessage(
|
||||||
"playerSettingsPlaybackIntervalDescriptionHead":
|
"记住每本书的播放器设置",
|
||||||
MessageLookupByLibrary.simpleMessage("每 "),
|
),
|
||||||
"playerSettingsPlaybackIntervalDescriptionTail":
|
"playerSettingsRememberForEveryBookDescription":
|
||||||
MessageLookupByLibrary.simpleMessage(" 向服务器报告一次进度"),
|
MessageLookupByLibrary.simpleMessage("每本书都会记住播放速度、音量等设置"),
|
||||||
"playerSettingsPlaybackReporting": MessageLookupByLibrary.simpleMessage(
|
"playerSettingsSpeed": MessageLookupByLibrary.simpleMessage("播放速度"),
|
||||||
"回放报告",
|
"playerSettingsSpeedDefault": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"默认播放速度",
|
||||||
"playerSettingsPlaybackReportingIgnore":
|
),
|
||||||
MessageLookupByLibrary.simpleMessage("忽略播放位置小于"),
|
"playerSettingsSpeedOptions": MessageLookupByLibrary.simpleMessage(
|
||||||
"playerSettingsPlaybackReportingMinimum":
|
"播放速度选项",
|
||||||
MessageLookupByLibrary.simpleMessage("回放报告最小位置"),
|
),
|
||||||
"playerSettingsPlaybackReportingMinimumDescriptionHead":
|
"playerSettingsSpeedOptionsSelect": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage("不要报告本书前 "),
|
"播放速度选项",
|
||||||
"playerSettingsPlaybackReportingMinimumDescriptionTail":
|
),
|
||||||
MessageLookupByLibrary.simpleMessage(" 的播放"),
|
"playerSettingsSpeedOptionsSelectAdd": MessageLookupByLibrary.simpleMessage(
|
||||||
"playerSettingsRememberForEveryBook":
|
"添加一个速度选项",
|
||||||
MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"记住每本书的播放器设置",
|
"playerSettingsSpeedOptionsSelectAddHelper":
|
||||||
),
|
MessageLookupByLibrary.simpleMessage("输入一个新的速度选项"),
|
||||||
"playerSettingsRememberForEveryBookDescription":
|
"playerSettingsSpeedSelect": MessageLookupByLibrary.simpleMessage("选择播放速度"),
|
||||||
MessageLookupByLibrary.simpleMessage("每本书都会记住播放速度、音量等设置"),
|
"playerSettingsSpeedSelectHelper": MessageLookupByLibrary.simpleMessage(
|
||||||
"playerSettingsSpeed": MessageLookupByLibrary.simpleMessage("播放速度"),
|
"输入默认的播放速度",
|
||||||
"playerSettingsSpeedDefault": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"默认播放速度",
|
"playlistsMine": MessageLookupByLibrary.simpleMessage("播放列表"),
|
||||||
),
|
"readLess": MessageLookupByLibrary.simpleMessage("折叠"),
|
||||||
"playerSettingsSpeedOptions": MessageLookupByLibrary.simpleMessage(
|
"readMore": MessageLookupByLibrary.simpleMessage("展开"),
|
||||||
"播放速度选项",
|
"refresh": MessageLookupByLibrary.simpleMessage("刷新"),
|
||||||
),
|
"reset": MessageLookupByLibrary.simpleMessage("重置"),
|
||||||
"playerSettingsSpeedOptionsSelect":
|
"resetAppSettings": MessageLookupByLibrary.simpleMessage("重置应用程序设置"),
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"resetAppSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"播放速度选项",
|
"将应用程序设置重置为默认值",
|
||||||
),
|
),
|
||||||
"playerSettingsSpeedOptionsSelectAdd":
|
"resetAppSettingsDialog": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"您确定要重置应用程序设置吗?",
|
||||||
"添加一个速度选项",
|
),
|
||||||
),
|
"restore": MessageLookupByLibrary.simpleMessage("恢复"),
|
||||||
"playerSettingsSpeedOptionsSelectAddHelper":
|
"restoreBackup": MessageLookupByLibrary.simpleMessage("恢复备份"),
|
||||||
MessageLookupByLibrary.simpleMessage("输入一个新的速度选项"),
|
"restoreBackupHint": MessageLookupByLibrary.simpleMessage("将备份粘贴到此处"),
|
||||||
"playerSettingsSpeedSelect":
|
"restoreBackupInvalid": MessageLookupByLibrary.simpleMessage("无效备份"),
|
||||||
MessageLookupByLibrary.simpleMessage("选择播放速度"),
|
"restoreBackupSuccess": MessageLookupByLibrary.simpleMessage("设置已恢复"),
|
||||||
"playerSettingsSpeedSelectHelper": MessageLookupByLibrary.simpleMessage(
|
"restoreBackupValidator": MessageLookupByLibrary.simpleMessage("请将备份粘贴到此处"),
|
||||||
"输入默认的播放速度",
|
"restoreDescription": MessageLookupByLibrary.simpleMessage("从备份中还原应用程序设置"),
|
||||||
),
|
"resume": MessageLookupByLibrary.simpleMessage("继续"),
|
||||||
"playlistsMine": MessageLookupByLibrary.simpleMessage("播放列表"),
|
"retry": MessageLookupByLibrary.simpleMessage("重试"),
|
||||||
"readLess": MessageLookupByLibrary.simpleMessage("折叠"),
|
"settings": MessageLookupByLibrary.simpleMessage("设置"),
|
||||||
"readMore": MessageLookupByLibrary.simpleMessage("展开"),
|
"shakeAction": MessageLookupByLibrary.simpleMessage("抖动操作"),
|
||||||
"refresh": MessageLookupByLibrary.simpleMessage("刷新"),
|
"shakeActionDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"reset": MessageLookupByLibrary.simpleMessage("重置"),
|
"检测到抖动时要执行的操作",
|
||||||
"resetAppSettings": MessageLookupByLibrary.simpleMessage("重置应用程序设置"),
|
),
|
||||||
"resetAppSettingsDescription": MessageLookupByLibrary.simpleMessage(
|
"shakeActivationThreshold": MessageLookupByLibrary.simpleMessage("抖动激活阈值"),
|
||||||
"将应用程序设置重置为默认值",
|
"shakeActivationThresholdDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
),
|
"门槛越高,你就越难摇晃",
|
||||||
"resetAppSettingsDialog": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"您确定要重置应用程序设置吗?",
|
"shakeDetector": MessageLookupByLibrary.simpleMessage("抖动检测器"),
|
||||||
),
|
"shakeDetectorDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"restore": MessageLookupByLibrary.simpleMessage("恢复"),
|
"自定义抖动检测器设置",
|
||||||
"restoreBackup": MessageLookupByLibrary.simpleMessage("恢复备份"),
|
),
|
||||||
"restoreBackupHint": MessageLookupByLibrary.simpleMessage("将备份粘贴到此处"),
|
"shakeDetectorEnable": MessageLookupByLibrary.simpleMessage("启用抖动检测"),
|
||||||
"restoreBackupInvalid": MessageLookupByLibrary.simpleMessage("无效备份"),
|
"shakeDetectorEnableDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"restoreBackupSuccess": MessageLookupByLibrary.simpleMessage("设置已恢复"),
|
"启用抖动检测以执行各种操作",
|
||||||
"restoreBackupValidator":
|
),
|
||||||
MessageLookupByLibrary.simpleMessage("请将备份粘贴到此处"),
|
"shakeDetectorSettings": MessageLookupByLibrary.simpleMessage("抖动检测器设置"),
|
||||||
"restoreDescription":
|
"shakeFeedback": MessageLookupByLibrary.simpleMessage("抖动反馈"),
|
||||||
MessageLookupByLibrary.simpleMessage("从备份中还原应用程序设置"),
|
"shakeFeedbackDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"resume": MessageLookupByLibrary.simpleMessage("继续"),
|
"检测到抖动时给出的反馈",
|
||||||
"retry": MessageLookupByLibrary.simpleMessage("重试"),
|
),
|
||||||
"settings": MessageLookupByLibrary.simpleMessage("设置"),
|
"shakeSelectAction": MessageLookupByLibrary.simpleMessage("选择抖动动作"),
|
||||||
"shakeAction": MessageLookupByLibrary.simpleMessage("抖动操作"),
|
"shakeSelectActivationThreshold": MessageLookupByLibrary.simpleMessage(
|
||||||
"shakeActionDescription": MessageLookupByLibrary.simpleMessage(
|
"选择抖动激活阈值",
|
||||||
"检测到抖动时要执行的操作",
|
),
|
||||||
),
|
"shakeSelectActivationThresholdHelper":
|
||||||
"shakeActivationThreshold":
|
MessageLookupByLibrary.simpleMessage("输入一个数字以m/s²为单位设置阈值"),
|
||||||
MessageLookupByLibrary.simpleMessage("抖动激活阈值"),
|
"shakeSelectFeedback": MessageLookupByLibrary.simpleMessage("选择抖动反馈"),
|
||||||
"shakeActivationThresholdDescription":
|
"themeMode": MessageLookupByLibrary.simpleMessage("主题模式"),
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"themeModeDark": MessageLookupByLibrary.simpleMessage("深色"),
|
||||||
"门槛越高,你就越难摇晃",
|
"themeModeHighContrast": MessageLookupByLibrary.simpleMessage("高对比度模式"),
|
||||||
),
|
"themeModeHighContrastDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"shakeDetector": MessageLookupByLibrary.simpleMessage("抖动检测器"),
|
"增加背景和文本之间的对比度",
|
||||||
"shakeDetectorDescription": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"自定义抖动检测器设置",
|
"themeModeLight": MessageLookupByLibrary.simpleMessage("浅色"),
|
||||||
),
|
"themeModeSystem": MessageLookupByLibrary.simpleMessage("跟随系统"),
|
||||||
"shakeDetectorEnable": MessageLookupByLibrary.simpleMessage("启用抖动检测"),
|
"themeSettings": MessageLookupByLibrary.simpleMessage("主题设置"),
|
||||||
"shakeDetectorEnableDescription": MessageLookupByLibrary.simpleMessage(
|
"themeSettingsColors": MessageLookupByLibrary.simpleMessage("主题色"),
|
||||||
"启用抖动检测以执行各种操作",
|
"themeSettingsColorsAndroid": MessageLookupByLibrary.simpleMessage("主题色"),
|
||||||
),
|
"themeSettingsColorsBook": MessageLookupByLibrary.simpleMessage(
|
||||||
"shakeDetectorSettings":
|
"书籍详情页自适应主题",
|
||||||
MessageLookupByLibrary.simpleMessage("抖动检测器设置"),
|
),
|
||||||
"shakeFeedback": MessageLookupByLibrary.simpleMessage("抖动反馈"),
|
"themeSettingsColorsBookDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
"shakeFeedbackDescription": MessageLookupByLibrary.simpleMessage(
|
"以牺牲一些性能为代价,对书籍详情页的颜色进行美化",
|
||||||
"检测到抖动时给出的反馈",
|
),
|
||||||
),
|
"themeSettingsColorsCurrent": MessageLookupByLibrary.simpleMessage(
|
||||||
"shakeSelectAction": MessageLookupByLibrary.simpleMessage("选择抖动动作"),
|
"根据当前播放的书籍调整主题",
|
||||||
"shakeSelectActivationThreshold": MessageLookupByLibrary.simpleMessage(
|
),
|
||||||
"选择抖动激活阈值",
|
"themeSettingsColorsCurrentDescription":
|
||||||
),
|
MessageLookupByLibrary.simpleMessage("使用当前播放书籍的主题颜色"),
|
||||||
"shakeSelectActivationThresholdHelper":
|
"themeSettingsColorsDescription": MessageLookupByLibrary.simpleMessage(
|
||||||
MessageLookupByLibrary.simpleMessage("输入一个数字以m/s²为单位设置阈值"),
|
"使用应用程序的系统主题色",
|
||||||
"shakeSelectFeedback": MessageLookupByLibrary.simpleMessage("选择抖动反馈"),
|
),
|
||||||
"themeMode": MessageLookupByLibrary.simpleMessage("主题模式"),
|
"themeSettingsDescription": MessageLookupByLibrary.simpleMessage("自定义应用主题"),
|
||||||
"themeModeDark": MessageLookupByLibrary.simpleMessage("深色"),
|
"timeSecond": m7,
|
||||||
"themeModeHighContrast": MessageLookupByLibrary.simpleMessage("高对比度模式"),
|
"unknown": MessageLookupByLibrary.simpleMessage("未知"),
|
||||||
"themeModeHighContrastDescription":
|
"webVersion": MessageLookupByLibrary.simpleMessage("Web版本"),
|
||||||
MessageLookupByLibrary.simpleMessage(
|
"yes": MessageLookupByLibrary.simpleMessage("是"),
|
||||||
"增加背景和文本之间的对比度",
|
"you": MessageLookupByLibrary.simpleMessage("我的"),
|
||||||
),
|
"youTooltip": MessageLookupByLibrary.simpleMessage("您的个人资料和设置"),
|
||||||
"themeModeLight": MessageLookupByLibrary.simpleMessage("浅色"),
|
};
|
||||||
"themeModeSystem": MessageLookupByLibrary.simpleMessage("跟随系统"),
|
|
||||||
"themeSettings": MessageLookupByLibrary.simpleMessage("主题设置"),
|
|
||||||
"themeSettingsColors": MessageLookupByLibrary.simpleMessage("主题色"),
|
|
||||||
"themeSettingsColorsAndroid":
|
|
||||||
MessageLookupByLibrary.simpleMessage("主题色"),
|
|
||||||
"themeSettingsColorsBook": MessageLookupByLibrary.simpleMessage(
|
|
||||||
"书籍详情页自适应主题",
|
|
||||||
),
|
|
||||||
"themeSettingsColorsBookDescription":
|
|
||||||
MessageLookupByLibrary.simpleMessage(
|
|
||||||
"以牺牲一些性能为代价,对书籍详情页的颜色进行美化",
|
|
||||||
),
|
|
||||||
"themeSettingsColorsCurrent": MessageLookupByLibrary.simpleMessage(
|
|
||||||
"根据当前播放的书籍调整主题",
|
|
||||||
),
|
|
||||||
"themeSettingsColorsCurrentDescription":
|
|
||||||
MessageLookupByLibrary.simpleMessage("使用当前播放书籍的主题颜色"),
|
|
||||||
"themeSettingsColorsDescription": MessageLookupByLibrary.simpleMessage(
|
|
||||||
"使用应用程序的系统主题色",
|
|
||||||
),
|
|
||||||
"themeSettingsDescription":
|
|
||||||
MessageLookupByLibrary.simpleMessage("自定义应用主题"),
|
|
||||||
"timeSecond": m7,
|
|
||||||
"unknown": MessageLookupByLibrary.simpleMessage("未知"),
|
|
||||||
"webVersion": MessageLookupByLibrary.simpleMessage("Web版本"),
|
|
||||||
"yes": MessageLookupByLibrary.simpleMessage("是"),
|
|
||||||
"you": MessageLookupByLibrary.simpleMessage("我的"),
|
|
||||||
"youTooltip": MessageLookupByLibrary.simpleMessage("您的个人资料和设置"),
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ import 'package:vaani/shared/extensions/model_conversions.dart';
|
||||||
import 'package:vaani/shared/extensions/style.dart';
|
import 'package:vaani/shared/extensions/style.dart';
|
||||||
import 'package:vaani/shared/icons/abs_icons.dart';
|
import 'package:vaani/shared/icons/abs_icons.dart';
|
||||||
import 'package:vaani/shared/utils/components.dart';
|
import 'package:vaani/shared/utils/components.dart';
|
||||||
import 'package:vaani/shared/widgets/custom_dropdown.dart';
|
|
||||||
import 'package:vaani/shared/widgets/skeletons.dart';
|
import 'package:vaani/shared/widgets/skeletons.dart';
|
||||||
|
|
||||||
class LibraryPage extends HookConsumerWidget {
|
class LibraryPage extends HookConsumerWidget {
|
||||||
|
|
@ -83,21 +82,21 @@ class LibraryPage extends HookConsumerWidget {
|
||||||
// ),
|
// ),
|
||||||
const LibraryItemsSort(),
|
const LibraryItemsSort(),
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(Icons.next_plan),
|
icon: Icon(Icons.bar_chart),
|
||||||
tooltip: '加载下一页', // Helpful tooltip for users
|
tooltip: '统计',
|
||||||
onPressed: () => ref.read(libraryItemsProvider.notifier).loadMore(),
|
onPressed: () =>
|
||||||
),
|
GoRouter.of(context).pushNamed(Routes.libraryStatistics.name),
|
||||||
IconButton(
|
|
||||||
icon: Icon(Icons.refresh),
|
|
||||||
tooltip: '刷新', // Helpful tooltip for users
|
|
||||||
onPressed: () => ref.read(libraryItemsProvider.notifier).refresh(),
|
|
||||||
),
|
),
|
||||||
|
// IconButton(
|
||||||
|
// icon: Icon(Icons.refresh),
|
||||||
|
// tooltip: '刷新', // Helpful tooltip for users
|
||||||
|
// onPressed: () => ref.read(libraryItemsProvider.notifier).refresh(),
|
||||||
|
// ),
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(Icons.download),
|
icon: Icon(Icons.download),
|
||||||
tooltip: S.of(context).bookDownloads, // Helpful tooltip for users
|
tooltip: S.of(context).bookDownloads, // Helpful tooltip for users
|
||||||
onPressed: () {
|
onPressed: () =>
|
||||||
GoRouter.of(context).pushNamed(Routes.downloads.name);
|
GoRouter.of(context).pushNamed(Routes.downloads.name),
|
||||||
},
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,11 @@ class Routes {
|
||||||
pathParamName: 'itemId',
|
pathParamName: 'itemId',
|
||||||
name: 'libraryItem',
|
name: 'libraryItem',
|
||||||
);
|
);
|
||||||
|
static const libraryStatistics = _SimpleRoute(
|
||||||
|
pathName: 'statistics',
|
||||||
|
// pathParamName: 'statistics',
|
||||||
|
name: 'libraryStatistics',
|
||||||
|
);
|
||||||
|
|
||||||
// Local settings
|
// Local settings
|
||||||
static const settings = _SimpleRoute(
|
static const settings = _SimpleRoute(
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ import 'package:vaani/features/settings/view/notification_settings_page.dart';
|
||||||
import 'package:vaani/features/settings/view/player_settings_page.dart';
|
import 'package:vaani/features/settings/view/player_settings_page.dart';
|
||||||
import 'package:vaani/features/settings/view/shake_detector_settings_page.dart';
|
import 'package:vaani/features/settings/view/shake_detector_settings_page.dart';
|
||||||
import 'package:vaani/features/settings/view/theme_settings_page.dart';
|
import 'package:vaani/features/settings/view/theme_settings_page.dart';
|
||||||
|
import 'package:vaani/features/statistics/abs_statistics.dart';
|
||||||
import 'package:vaani/features/you/view/server_manager.dart';
|
import 'package:vaani/features/you/view/server_manager.dart';
|
||||||
import 'package:vaani/features/you/view/you_page.dart';
|
import 'package:vaani/features/you/view/you_page.dart';
|
||||||
import 'package:vaani/globals.dart';
|
import 'package:vaani/globals.dart';
|
||||||
|
|
@ -125,10 +126,18 @@ class MyAppRouter {
|
||||||
// pageBuilder: defaultPageBuilder(const LibraryBrowserPage()),
|
// pageBuilder: defaultPageBuilder(const LibraryBrowserPage()),
|
||||||
// ),
|
// ),
|
||||||
GoRoute(
|
GoRoute(
|
||||||
path: Routes.library.localPath,
|
path: Routes.library.localPath,
|
||||||
name: Routes.library.name,
|
name: Routes.library.name,
|
||||||
pageBuilder: defaultPageBuilder(LibraryPage()),
|
pageBuilder: defaultPageBuilder(LibraryPage()),
|
||||||
),
|
routes: [
|
||||||
|
GoRoute(
|
||||||
|
path: Routes.libraryStatistics.pathName,
|
||||||
|
name: Routes.libraryStatistics.name,
|
||||||
|
pageBuilder: defaultPageBuilder(
|
||||||
|
const LibraryStatisticsPage(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
// search/explore page
|
// search/explore page
|
||||||
|
|
|
||||||
|
|
@ -35,12 +35,18 @@ class ScaffoldWithNavBar extends HookConsumerWidget {
|
||||||
final size = MediaQuery.of(context).size;
|
final size = MediaQuery.of(context).size;
|
||||||
// 竖屏
|
// 竖屏
|
||||||
final isVertical = size.height > size.width;
|
final isVertical = size.height > size.width;
|
||||||
|
final currentBook = ref.watch(currentBookProvider);
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
body: Stack(
|
body: Stack(
|
||||||
alignment: Alignment.bottomCenter,
|
alignment: Alignment.bottomCenter,
|
||||||
children: [
|
children: [
|
||||||
isVertical ? navigationShell : buildNavLeft(context, ref),
|
Padding(
|
||||||
|
padding: EdgeInsets.only(
|
||||||
|
bottom: currentBook != null ? playerMinHeight : 0,
|
||||||
|
),
|
||||||
|
child: isVertical ? navigationShell : buildNavLeft(context, ref),
|
||||||
|
),
|
||||||
const PlayerMinimized(),
|
const PlayerMinimized(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
@ -49,67 +55,62 @@ class ScaffoldWithNavBar extends HookConsumerWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget buildNavLeft(BuildContext context, WidgetRef ref) {
|
Widget buildNavLeft(BuildContext context, WidgetRef ref) {
|
||||||
final currentBook = ref.watch(currentBookProvider);
|
return Row(
|
||||||
return Padding(
|
children: [
|
||||||
padding:
|
SafeArea(
|
||||||
EdgeInsets.only(bottom: currentBook != null ? playerMinHeight : 0),
|
child: NavigationRail(
|
||||||
child: Row(
|
minWidth: 60,
|
||||||
children: [
|
minExtendedWidth: 180,
|
||||||
SafeArea(
|
extended: MediaQuery.of(context).size.width > 640,
|
||||||
child: NavigationRail(
|
// extended: false,
|
||||||
minWidth: 60,
|
destinations: _navigationItems(context).map((item) {
|
||||||
minExtendedWidth: 180,
|
final isDestinationLibrary = item.name == S.of(context).library;
|
||||||
extended: MediaQuery.of(context).size.width > 640,
|
var currentLibrary =
|
||||||
// extended: false,
|
ref.watch(currentLibraryProvider).valueOrNull;
|
||||||
destinations: _navigationItems(context).map((item) {
|
final libraryIcon = AbsIcons.getIconByName(
|
||||||
final isDestinationLibrary = item.name == S.of(context).library;
|
currentLibrary?.icon,
|
||||||
var currentLibrary =
|
);
|
||||||
ref.watch(currentLibraryProvider).valueOrNull;
|
final destinationWidget = NavigationRailDestination(
|
||||||
final libraryIcon = AbsIcons.getIconByName(
|
icon: Icon(
|
||||||
currentLibrary?.icon,
|
isDestinationLibrary ? libraryIcon ?? item.icon : item.icon,
|
||||||
);
|
),
|
||||||
final destinationWidget = NavigationRailDestination(
|
selectedIcon: Icon(
|
||||||
icon: Icon(
|
isDestinationLibrary
|
||||||
isDestinationLibrary ? libraryIcon ?? item.icon : item.icon,
|
? libraryIcon ?? item.activeIcon
|
||||||
),
|
: item.activeIcon,
|
||||||
selectedIcon: Icon(
|
),
|
||||||
isDestinationLibrary
|
label: Text(
|
||||||
? libraryIcon ?? item.activeIcon
|
isDestinationLibrary
|
||||||
: item.activeIcon,
|
? currentLibrary?.name ?? item.name
|
||||||
),
|
: item.name,
|
||||||
label: Text(
|
),
|
||||||
isDestinationLibrary
|
// tooltip: item.tooltip,
|
||||||
? currentLibrary?.name ?? item.name
|
);
|
||||||
: item.name,
|
// if (isDestinationLibrary) {
|
||||||
),
|
// return GestureDetector(
|
||||||
// tooltip: item.tooltip,
|
// onSecondaryTap: () => showLibrarySwitcher(context, ref),
|
||||||
);
|
// onDoubleTap: () => showLibrarySwitcher(context, ref),
|
||||||
// if (isDestinationLibrary) {
|
// child:
|
||||||
// return GestureDetector(
|
// destinationWidget, // Wrap the actual NavigationDestination
|
||||||
// onSecondaryTap: () => showLibrarySwitcher(context, ref),
|
// );
|
||||||
// onDoubleTap: () => showLibrarySwitcher(context, ref),
|
// } else {
|
||||||
// child:
|
// // Return the unwrapped destination for other items
|
||||||
// destinationWidget, // Wrap the actual NavigationDestination
|
// return destinationWidget;
|
||||||
// );
|
// }
|
||||||
// } else {
|
return destinationWidget;
|
||||||
// // Return the unwrapped destination for other items
|
// return NavigationRailDestination(icon: Icon(nav.icon), label: Text(nav.name));
|
||||||
// return destinationWidget;
|
}).toList(),
|
||||||
// }
|
selectedIndex: navigationShell.currentIndex,
|
||||||
return destinationWidget;
|
onDestinationSelected: (int index) {
|
||||||
// return NavigationRailDestination(icon: Icon(nav.icon), label: Text(nav.name));
|
_onTap(context, index, ref);
|
||||||
}).toList(),
|
},
|
||||||
selectedIndex: navigationShell.currentIndex,
|
|
||||||
onDestinationSelected: (int index) {
|
|
||||||
_onTap(context, index, ref);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
VerticalDivider(width: 0.5, thickness: 0.5),
|
),
|
||||||
Expanded(
|
VerticalDivider(width: 0.5, thickness: 0.5),
|
||||||
child: navigationShell,
|
Expanded(
|
||||||
),
|
child: navigationShell,
|
||||||
],
|
),
|
||||||
),
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
16
pubspec.lock
16
pubspec.lock
|
|
@ -626,14 +626,6 @@ packages:
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.3.3"
|
version: "2.3.3"
|
||||||
hive_ce_generator:
|
|
||||||
dependency: "direct dev"
|
|
||||||
description:
|
|
||||||
name: hive_ce_generator
|
|
||||||
sha256: "182fb88273055e05ef0e630b5e32e5a30268722ed3bf46fdf5986792862975af"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "1.8.1"
|
|
||||||
hooks_riverpod:
|
hooks_riverpod:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|
@ -1711,14 +1703,6 @@ packages:
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.1.3"
|
version: "3.1.3"
|
||||||
yaml_writer:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: yaml_writer
|
|
||||||
sha256: "69651cd7238411179ac32079937d4aa9a2970150d6b2ae2c6fe6de09402a5dc5"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "2.1.0"
|
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=3.8.0 <4.0.0"
|
dart: ">=3.8.0 <4.0.0"
|
||||||
flutter: ">=3.32.0"
|
flutter: ">=3.32.0"
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,8 @@ dependencies:
|
||||||
|
|
||||||
# 图标
|
# 图标
|
||||||
icons_plus: ^5.0.0
|
icons_plus: ^5.0.0
|
||||||
|
# 自动适配Material和Cupertino
|
||||||
|
#flutter_platform_widgets: ^9.0.0
|
||||||
|
|
||||||
# hooks
|
# hooks
|
||||||
flutter_hooks: ^0.21.2
|
flutter_hooks: ^0.21.2
|
||||||
|
|
@ -143,6 +145,8 @@ dependencies:
|
||||||
|
|
||||||
# 分享插件
|
# 分享插件
|
||||||
share_plus: ^10.0.2
|
share_plus: ^10.0.2
|
||||||
|
# chart
|
||||||
|
# fl_chart: ^1.1.1
|
||||||
|
|
||||||
# AudiobookShelf SDK
|
# AudiobookShelf SDK
|
||||||
shelfsdk:
|
shelfsdk:
|
||||||
|
|
@ -174,7 +178,7 @@ dev_dependencies:
|
||||||
freezed: ^2.5.2
|
freezed: ^2.5.2
|
||||||
json_serializable: ^6.8.0
|
json_serializable: ^6.8.0
|
||||||
|
|
||||||
hive_ce_generator: ^1.8.1
|
# hive_ce_generator: ^1.8.1
|
||||||
|
|
||||||
# 启动图标
|
# 启动图标
|
||||||
flutter_launcher_icons: "^0.14.4"
|
flutter_launcher_icons: "^0.14.4"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue