测试安卓修改app名称

This commit is contained in:
rang 2025-12-05 17:59:13 +08:00
parent 6b1edcb475
commit 6ceeb99d20
19 changed files with 1218 additions and 822 deletions

View file

@ -87,7 +87,11 @@ jobs:
run: flutter build apk --release run: flutter build apk --release
- name: Rename Universal APK - name: Rename Universal APK
run: mv build/app/outputs/flutter-apk/{app-release,app-universal-release}.apk run: |
APP_NAME=$(grep '^name:' pubspec.yaml | sed 's/name: //')
APP_VERSION=$(grep '^version:' pubspec.yaml | sed 's/version: //')
mv build/app/outputs/flutter-apk/{app-release,$APP_NAME-$APP_VERSION-app-universal}.apk
- name: Build App Bundle - name: Build App Bundle
run: flutter build appbundle --release run: flutter build appbundle --release

View file

@ -2,7 +2,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart' show Ref;
import 'package:logging/logging.dart' show Logger; import 'package:logging/logging.dart' show Logger;
import 'package:riverpod_annotation/riverpod_annotation.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart';
import 'package:shelfsdk/audiobookshelf_api.dart' import 'package:shelfsdk/audiobookshelf_api.dart'
show GetLibrarysItemsReqParams, Library, LibraryItemMinified; show GetLibrarysItemsReqParams, Library, LibraryItemMinified, LibraryItem;
import 'package:vaani/api/api_provider.dart' show authenticatedApiProvider; import 'package:vaani/api/api_provider.dart' show authenticatedApiProvider;
import 'package:vaani/features/settings/api_settings_provider.dart' import 'package:vaani/features/settings/api_settings_provider.dart'
show apiSettingsProvider; show apiSettingsProvider;
@ -59,9 +59,21 @@ class Libraries extends _$Libraries {
} }
} }
@riverpod
class LibraryItemsParams extends _$LibraryItemsParams {
@override
GetLibrarysItemsReqParams build() {
return const GetLibrarysItemsReqParams(
limit: 18,
page: 0,
minified: true,
);
}
}
// //
@riverpod @riverpod
Future<List<LibraryItemMinified>> currentLibraryItems(Ref ref) async { Future<List<LibraryItem>> currentLibraryItems(Ref ref) async {
final api = ref.watch(authenticatedApiProvider); final api = ref.watch(authenticatedApiProvider);
final libraryId = final libraryId =
ref.watch(apiSettingsProvider.select((s) => s.activeLibraryId)); ref.watch(apiSettingsProvider.select((s) => s.activeLibraryId));
@ -73,12 +85,12 @@ Future<List<LibraryItemMinified>> currentLibraryItems(Ref ref) async {
libraryId: libraryId, libraryId: libraryId,
parameters: const GetLibrarysItemsReqParams( parameters: const GetLibrarysItemsReqParams(
limit: 18, limit: 18,
page: 1, page: 0,
minified: true, minified: true,
), ),
); );
if (items == null) { if (items == null) {
return []; return [];
} }
return items.results.map((v) => v.asMinified).toList(); return items.results;
} }

View file

@ -174,12 +174,12 @@ final currentLibraryProvider = AutoDisposeFutureProvider<Library?>.internal(
// ignore: unused_element // ignore: unused_element
typedef CurrentLibraryRef = AutoDisposeFutureProviderRef<Library?>; typedef CurrentLibraryRef = AutoDisposeFutureProviderRef<Library?>;
String _$currentLibraryItemsHash() => String _$currentLibraryItemsHash() =>
r'2e2ce270c46bedf0b779399772df89a23803fe50'; r'b0d0dcca86e760ee08f327c06b5ad5deaf7852e1';
/// See also [currentLibraryItems]. /// See also [currentLibraryItems].
@ProviderFor(currentLibraryItems) @ProviderFor(currentLibraryItems)
final currentLibraryItemsProvider = final currentLibraryItemsProvider =
AutoDisposeFutureProvider<List<LibraryItemMinified>>.internal( AutoDisposeFutureProvider<List<LibraryItem>>.internal(
currentLibraryItems, currentLibraryItems,
name: r'currentLibraryItemsProvider', name: r'currentLibraryItemsProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
@ -192,7 +192,7 @@ final currentLibraryItemsProvider =
@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 CurrentLibraryItemsRef typedef CurrentLibraryItemsRef
= AutoDisposeFutureProviderRef<List<LibraryItemMinified>>; = AutoDisposeFutureProviderRef<List<LibraryItem>>;
String _$librariesHash() => r'95ebd4d1ac0cc2acf7617dc22895eff0ca30600f'; String _$librariesHash() => r'95ebd4d1ac0cc2acf7617dc22895eff0ca30600f';
/// See also [Libraries]. /// See also [Libraries].
@ -208,5 +208,22 @@ final librariesProvider =
); );
typedef _$Libraries = AutoDisposeAsyncNotifier<List<Library>>; typedef _$Libraries = AutoDisposeAsyncNotifier<List<Library>>;
String _$libraryItemsParamsHash() =>
r'9e7f11ab185eb99e926ae87e06466fc12aee7f72';
/// See also [LibraryItemsParams].
@ProviderFor(LibraryItemsParams)
final libraryItemsParamsProvider = AutoDisposeNotifierProvider<
LibraryItemsParams, GetLibrarysItemsReqParams>.internal(
LibraryItemsParams.new,
name: r'libraryItemsParamsProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
? null
: _$libraryItemsParamsHash,
dependencies: null,
allTransitiveDependencies: null,
);
typedef _$LibraryItemsParams = AutoDisposeNotifier<GetLibrarysItemsReqParams>;
// 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

View file

@ -0,0 +1,39 @@
import 'package:audio_service/audio_service.dart';
import 'package:just_audio/just_audio.dart';
class AbsAudioHandler extends BaseAudioHandler with QueueHandler, SeekHandler {
final AudioPlayer player;
AbsAudioHandler(this.player);
//
@override
Future<void> play() async {
await player.play();
}
@override
Future<void> pause() async {
await player.pause();
}
@override
Future<void> skipToNext() async {
await player.seekToNext();
}
@override
Future<void> skipToPrevious() async {
await player.seekToPrevious();
}
@override
Future<void> seek(Duration position) async {
await player.seek(position);
}
@override
Future<void> setSpeed(double speed) async {
await player.setSpeed(speed);
}
}

View file

@ -0,0 +1,5 @@
// ignore_for_file: public_member_api_docs, sort_constructors_first
import 'package:just_audio/just_audio.dart';
import 'package:shelfsdk/audiobookshelf_api.dart';
class AbsAudioPlayer extends AudioPlayer {}

View file

@ -32,6 +32,7 @@ class AbsAudioHandler extends BaseAudioHandler with QueueHandler, SeekHandler {
final _currentChapterObject = BehaviorSubject<BookChapter?>.seeded(null); final _currentChapterObject = BehaviorSubject<BookChapter?>.seeded(null);
AbsAudioHandler(this.ref) { AbsAudioHandler(this.ref) {
notificationSettings = ref.read(appSettingsProvider).notificationSettings;
ref.listen(appSettingsProvider, (a, b) { ref.listen(appSettingsProvider, (a, b) {
if (a?.notificationSettings != b.notificationSettings) { if (a?.notificationSettings != b.notificationSettings) {
notificationSettings = b.notificationSettings; notificationSettings = b.notificationSettings;
@ -52,12 +53,12 @@ class AbsAudioHandler extends BaseAudioHandler with QueueHandler, SeekHandler {
final chapter = _book?.findChapterAtTime(positionInBook); final chapter = _book?.findChapterAtTime(positionInBook);
if (chapter != currentChapter) { if (chapter != currentChapter) {
if (mediaItem.hasValue && chapter != null) { if (mediaItem.hasValue && chapter != null) {
updateMediaItem( // updateMediaItem(
mediaItem.value!.copyWith( // mediaItem.value!.copyWith(
duration: chapter.duration, // duration: chapter.duration,
displayTitle: chapter.title, // displayTitle: chapter.title,
), // ),
); // );
} }
_currentChapterObject.sink.add(chapter); _currentChapterObject.sink.add(chapter);
} }

View file

@ -0,0 +1,56 @@
import 'package:audio_service/audio_service.dart';
import 'package:audio_session/audio_session.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:just_audio_media_kit/just_audio_media_kit.dart';
import 'package:logging/logging.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import 'package:shelfsdk/audiobookshelf_api.dart';
import 'package:vaani/features/player/core/abs_audio_handler.dart' as core;
import 'package:vaani/features/player/core/abs_audio_player.dart' as core;
part 'abs_provider.g.dart';
final _logger = Logger('AbsPlayerProvider');
@Riverpod(keepAlive: true)
Future<core.AbsAudioHandler> absAudioHandler(Ref ref) async {
// for playing audio on windows, linux
JustAudioMediaKit.ensureInitialized();
// for configuring how this app will interact with other audio apps
final session = await AudioSession.instance;
await session.configure(const AudioSessionConfiguration.speech());
final player = ref.read(absAudioPlayerProvider);
final audioService = await AudioService.init(
builder: () => core.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),
),
);
return audioService;
}
@Riverpod(keepAlive: true)
class AbsAudioPlayer extends _$AbsAudioPlayer {
@override
core.AbsAudioPlayer build() {
final player = core.AbsAudioPlayer();
ref.onDispose(player.dispose);
_logger.finer('created simple player');
return player;
}
}

View file

@ -0,0 +1,43 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'abs_provider.dart';
// **************************************************************************
// RiverpodGenerator
// **************************************************************************
String _$absAudioHandlerHash() => r'f4ef20cc3e244d5d37354ef38a1e0fdbd89412f4';
/// See also [absAudioHandler].
@ProviderFor(absAudioHandler)
final absAudioHandlerProvider = FutureProvider<core.AbsAudioHandler>.internal(
absAudioHandler,
name: r'absAudioHandlerProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
? null
: _$absAudioHandlerHash,
dependencies: null,
allTransitiveDependencies: null,
);
@Deprecated('Will be removed in 3.0. Use Ref instead')
// ignore: unused_element
typedef AbsAudioHandlerRef = FutureProviderRef<core.AbsAudioHandler>;
String _$absAudioPlayerHash() => r'68a56d45a9f165d257c23f81d9bf7d0930425464';
/// See also [AbsAudioPlayer].
@ProviderFor(AbsAudioPlayer)
final absAudioPlayerProvider =
NotifierProvider<AbsAudioPlayer, core.AbsAudioPlayer>.internal(
AbsAudioPlayer.new,
name: r'absAudioPlayerProvider',
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
? null
: _$absAudioPlayerHash,
dependencies: null,
allTransitiveDependencies: null,
);
typedef _$AbsAudioPlayer = Notifier<core.AbsAudioPlayer>;
// 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

View file

@ -99,6 +99,7 @@ List<core.BookChapter> currentChapters(Ref ref) {
} }
final index = book.chapters.indexOf(currentChapter); final index = book.chapters.indexOf(currentChapter);
final total = book.chapters.length; final total = book.chapters.length;
return book.chapters final start = index - 3 >= 0 ? index - 3 : 0;
.sublist(index - 3, (total - 3) <= (index + 17) ? total : index + 17); final end = start + 20 <= total ? start + 20 : total;
return book.chapters.sublist(start, end);
} }

View file

@ -6,7 +6,7 @@ part of 'currently_playing_provider.dart';
// RiverpodGenerator // RiverpodGenerator
// ************************************************************************** // **************************************************************************
String _$currentChaptersHash() => r'a25733d8085a2ce7dbc16fa2bf14f00ab8e2a623'; String _$currentChaptersHash() => r'6574b3f4ee0af8006f233aaf76cc507d188c6305';
/// See also [currentChapters]. /// See also [currentChapters].
@ProviderFor(currentChapters) @ProviderFor(currentChapters)

View file

@ -1,7 +1,9 @@
import 'dart:math'; import 'dart:math';
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:shelfsdk/audiobookshelf_api.dart';
import 'package:vaani/constants/sizes.dart'; import 'package:vaani/constants/sizes.dart';
import 'package:vaani/features/player/providers/audiobook_player.dart'; import 'package:vaani/features/player/providers/audiobook_player.dart';
import 'package:vaani/features/player/providers/currently_playing_provider.dart'; import 'package:vaani/features/player/providers/currently_playing_provider.dart';
@ -137,22 +139,45 @@ class PlayerExpandedDesktop extends HookConsumerWidget {
class ChapterSelection extends HookConsumerWidget { class ChapterSelection extends HookConsumerWidget {
const ChapterSelection({super.key}); const ChapterSelection({super.key});
@override @override
Widget build(BuildContext context, WidgetRef ref) { Widget build(BuildContext context, WidgetRef ref) {
final currentChapter = ref.watch(currentChapterProvider); final currentChapter = ref.watch(currentChapterProvider);
if (currentChapter == null) { if (currentChapter == null) {
return SizedBox.shrink(); return SizedBox.shrink();
} }
final chapters = useState(<BookChapter>[]);
final scrollController = useScrollController();
useEffect(
() {
int page = 0;
void load(page) {
chapters.value.addAll(ref.watch(currentChaptersProvider));
}
final currentChapters = ref.watch(currentChaptersProvider); load(page);
final currentChapterIndex = currentChapters.indexOf(currentChapter); void listener() {
if (scrollController.position.pixels /
scrollController.position.maxScrollExtent >
0.8) {
print('滚动到底部');
}
}
scrollController.addListener(listener);
return () => scrollController.removeListener(listener);
},
[scrollController],
);
final currentChapterIndex = chapters.value.indexOf(currentChapter);
final theme = Theme.of(context); final theme = Theme.of(context);
return Scrollbar( return Scrollbar(
controller: scrollController,
child: ListView.builder( child: ListView.builder(
itemCount: currentChapters.length, controller: scrollController,
itemCount: chapters.value.length,
itemBuilder: (context, index) { itemBuilder: (context, index) {
final chapter = currentChapters[index]; final chapter = chapters.value[index];
final isCurrent = currentChapterIndex == index; final isCurrent = currentChapterIndex == index;
final isPlayed = index < currentChapterIndex; final isPlayed = index < currentChapterIndex;
return ListTile( return ListTile(

View file

@ -38,461 +38,483 @@ 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": MessageLookupByLibrary.simpleMessage("Invalid URL"), "accountInvalidURL":
"accountManage": MessageLookupByLibrary.simpleMessage("Manage Accounts"), MessageLookupByLibrary.simpleMessage("Invalid URL"),
"accountRegisteredServers": MessageLookupByLibrary.simpleMessage( "accountManage":
"Registered Servers", MessageLookupByLibrary.simpleMessage("Manage Accounts"),
), "accountRegisteredServers": MessageLookupByLibrary.simpleMessage(
"accountRemoveServerAndUsers": MessageLookupByLibrary.simpleMessage( "Registered Servers",
"Remove Server and Users", ),
), "accountRemoveServerAndUsers": MessageLookupByLibrary.simpleMessage(
"accountRemoveServerAndUsersHead": MessageLookupByLibrary.simpleMessage( "Remove Server and Users",
"This will remove the server ", ),
), "accountRemoveServerAndUsersHead": MessageLookupByLibrary.simpleMessage(
"accountRemoveServerAndUsersTail": MessageLookupByLibrary.simpleMessage( "This will remove the server ",
" and all its users\' login info from this app.", ),
), "accountRemoveServerAndUsersTail": MessageLookupByLibrary.simpleMessage(
"accountRemoveUserLogin": MessageLookupByLibrary.simpleMessage( " and all its users\' login info from this app.",
"Remove User Login", ),
), "accountRemoveUserLogin": MessageLookupByLibrary.simpleMessage(
"accountRemoveUserLoginHead": MessageLookupByLibrary.simpleMessage( "Remove User Login",
"This will remove login details of the user ", ),
), "accountRemoveUserLoginHead": MessageLookupByLibrary.simpleMessage(
"accountRemoveUserLoginTail": MessageLookupByLibrary.simpleMessage( "This will remove login details of the user ",
" from this app.", ),
), "accountRemoveUserLoginTail": MessageLookupByLibrary.simpleMessage(
"accountServerURI": MessageLookupByLibrary.simpleMessage("Server URI"), " from this app.",
"accountSwitch": MessageLookupByLibrary.simpleMessage("Switch Account"), ),
"accountUsersCount": m1, "accountServerURI": MessageLookupByLibrary.simpleMessage("Server URI"),
"appSettings": MessageLookupByLibrary.simpleMessage("App Settings"), "accountSwitch": MessageLookupByLibrary.simpleMessage("Switch Account"),
"appearance": MessageLookupByLibrary.simpleMessage("Appearance"), "accountUsersCount": m1,
"autoSleepTimerSettings": MessageLookupByLibrary.simpleMessage( "appSettings": MessageLookupByLibrary.simpleMessage("App Settings"),
"Auto Sleep Timer Settings", "appearance": MessageLookupByLibrary.simpleMessage("Appearance"),
), "autoSleepTimerSettings": MessageLookupByLibrary.simpleMessage(
"autoTurnOnSleepTimer": MessageLookupByLibrary.simpleMessage( "Auto Sleep Timer Settings",
"Auto Turn On Sleep Timer", ),
), "autoTurnOnSleepTimer": MessageLookupByLibrary.simpleMessage(
"autoTurnOnTimer": MessageLookupByLibrary.simpleMessage( "Auto Turn On Sleep Timer",
"Auto Turn On Timer", ),
), "autoTurnOnTimer": MessageLookupByLibrary.simpleMessage(
"autoTurnOnTimerAlways": MessageLookupByLibrary.simpleMessage( "Auto Turn On Timer",
"Always Auto Turn On Timer", ),
), "autoTurnOnTimerAlways": MessageLookupByLibrary.simpleMessage(
"autoTurnOnTimerAlwaysDescription": MessageLookupByLibrary.simpleMessage( "Always Auto Turn On Timer",
"Always turn on the sleep timer, no matter what", ),
), "autoTurnOnTimerAlwaysDescription":
"autoTurnOnTimerDescription": MessageLookupByLibrary.simpleMessage( MessageLookupByLibrary.simpleMessage(
"Automatically turn on the sleep timer based on the time of day", "Always turn on the sleep timer, no matter what",
), ),
"autoTurnOnTimerFrom": MessageLookupByLibrary.simpleMessage("From"), "autoTurnOnTimerDescription": MessageLookupByLibrary.simpleMessage(
"autoTurnOnTimerFromDescription": MessageLookupByLibrary.simpleMessage( "Automatically turn on the sleep timer based on the time of day",
"Turn on the sleep timer at the specified time", ),
), "autoTurnOnTimerFrom": MessageLookupByLibrary.simpleMessage("From"),
"autoTurnOnTimerUntil": MessageLookupByLibrary.simpleMessage("Until"), "autoTurnOnTimerFromDescription": MessageLookupByLibrary.simpleMessage(
"autoTurnOnTimerUntilDescription": MessageLookupByLibrary.simpleMessage( "Turn on the sleep timer at the specified time",
"Turn off the sleep timer at the specified time", ),
), "autoTurnOnTimerUntil": MessageLookupByLibrary.simpleMessage("Until"),
"automaticallyDescription": MessageLookupByLibrary.simpleMessage( "autoTurnOnTimerUntilDescription": MessageLookupByLibrary.simpleMessage(
"Automatically turn on the sleep timer based on the time of day", "Turn off the sleep timer at the specified time",
), ),
"backup": MessageLookupByLibrary.simpleMessage("Backup"), "automaticallyDescription": MessageLookupByLibrary.simpleMessage(
"backupAndRestore": MessageLookupByLibrary.simpleMessage( "Automatically turn on the sleep timer based on the time of day",
"Backup and Restore", ),
), "backup": MessageLookupByLibrary.simpleMessage("Backup"),
"bookAbout": MessageLookupByLibrary.simpleMessage("About the Book"), "backupAndRestore": MessageLookupByLibrary.simpleMessage(
"bookAboutDefault": MessageLookupByLibrary.simpleMessage( "Backup and Restore",
"Sorry, no description found", ),
), "bookAbout": MessageLookupByLibrary.simpleMessage("About the Book"),
"bookAuthors": MessageLookupByLibrary.simpleMessage("Authors"), "bookAboutDefault": MessageLookupByLibrary.simpleMessage(
"bookDownloads": MessageLookupByLibrary.simpleMessage("Downloads"), "Sorry, no description found",
"bookGenres": MessageLookupByLibrary.simpleMessage("Genres"), ),
"bookMetadataAbridged": MessageLookupByLibrary.simpleMessage("Abridged"), "bookAuthors": MessageLookupByLibrary.simpleMessage("Authors"),
"bookMetadataLength": MessageLookupByLibrary.simpleMessage("Length"), "bookDownloads": MessageLookupByLibrary.simpleMessage("Downloads"),
"bookMetadataPublished": MessageLookupByLibrary.simpleMessage("Published"), "bookGenres": MessageLookupByLibrary.simpleMessage("Genres"),
"bookMetadataUnabridged": MessageLookupByLibrary.simpleMessage( "bookMetadataAbridged":
"Unabridged", MessageLookupByLibrary.simpleMessage("Abridged"),
), "bookMetadataLength": MessageLookupByLibrary.simpleMessage("Length"),
"bookSeries": MessageLookupByLibrary.simpleMessage("Series"), "bookMetadataPublished":
"bookShelveEmpty": MessageLookupByLibrary.simpleMessage("Try again"), MessageLookupByLibrary.simpleMessage("Published"),
"bookShelveEmptyText": MessageLookupByLibrary.simpleMessage( "bookMetadataUnabridged": MessageLookupByLibrary.simpleMessage(
"No shelves to display", "Unabridged",
), ),
"cancel": MessageLookupByLibrary.simpleMessage("Cancel"), "bookSeries": MessageLookupByLibrary.simpleMessage("Series"),
"chapterNotFound": MessageLookupByLibrary.simpleMessage("Chapters"), "bookShelveEmpty": MessageLookupByLibrary.simpleMessage("Try again"),
"chapterSelect": MessageLookupByLibrary.simpleMessage("Select Chapter"), "bookShelveEmptyText": MessageLookupByLibrary.simpleMessage(
"chapterSkip": MessageLookupByLibrary.simpleMessage( "No shelves to display",
"Skip chapter opening and ending", ),
), "cancel": MessageLookupByLibrary.simpleMessage("Cancel"),
"chapterSkipEnd": MessageLookupByLibrary.simpleMessage( "chapterNotFound": MessageLookupByLibrary.simpleMessage("Chapters"),
"Skip chapter opening for ", "chapterSelect": MessageLookupByLibrary.simpleMessage("Select Chapter"),
), "chapterSkip": MessageLookupByLibrary.simpleMessage(
"chapterSkipOpen": MessageLookupByLibrary.simpleMessage( "Skip chapter opening and ending",
"Skip chapter opening for ", ),
), "chapterSkipEnd": MessageLookupByLibrary.simpleMessage(
"chapters": MessageLookupByLibrary.simpleMessage("Chapters"), "Skip chapter opening for ",
"copyToClipboard": MessageLookupByLibrary.simpleMessage( ),
"Copy to Clipboard", "chapterSkipOpen": MessageLookupByLibrary.simpleMessage(
), "Skip chapter opening for ",
"copyToClipboardDescription": MessageLookupByLibrary.simpleMessage( ),
"Copy the app settings to the clipboard", "chapters": MessageLookupByLibrary.simpleMessage("Chapters"),
), "copyToClipboard": MessageLookupByLibrary.simpleMessage(
"copyToClipboardToast": MessageLookupByLibrary.simpleMessage( "Copy to Clipboard",
"Settings copied to clipboard", ),
), "copyToClipboardDescription": MessageLookupByLibrary.simpleMessage(
"delete": MessageLookupByLibrary.simpleMessage("Delete"), "Copy the app settings to the clipboard",
"deleteDialog": m2, ),
"deleted": m3, "copyToClipboardToast": MessageLookupByLibrary.simpleMessage(
"explore": MessageLookupByLibrary.simpleMessage("explore"), "Settings copied to clipboard",
"exploreHint": MessageLookupByLibrary.simpleMessage( ),
"Seek and you shall discover...", "delete": MessageLookupByLibrary.simpleMessage("Delete"),
), "deleteDialog": m2,
"exploreTooltip": MessageLookupByLibrary.simpleMessage( "deleted": m3,
"Search and Explore", "explore": MessageLookupByLibrary.simpleMessage("explore"),
), "exploreHint": MessageLookupByLibrary.simpleMessage(
"general": MessageLookupByLibrary.simpleMessage("General"), "Seek and you shall discover...",
"help": MessageLookupByLibrary.simpleMessage("Help"), ),
"home": MessageLookupByLibrary.simpleMessage("Home"), "exploreTooltip": MessageLookupByLibrary.simpleMessage(
"homeBookContinueListening": MessageLookupByLibrary.simpleMessage( "Search and Explore",
"Continue Listening", ),
), "general": MessageLookupByLibrary.simpleMessage("General"),
"homeBookContinueListeningDescription": "help": MessageLookupByLibrary.simpleMessage("Help"),
MessageLookupByLibrary.simpleMessage( "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": MessageLookupByLibrary.simpleMessage( "homeBookContinueSeriesDescription":
"Show play button for books in continue series shelf", MessageLookupByLibrary.simpleMessage(
), "Show play button for books in continue series shelf",
"homeBookDiscover": MessageLookupByLibrary.simpleMessage("Discover"), ),
"homeBookListenAgain": MessageLookupByLibrary.simpleMessage("Listen Again"), "homeBookDiscover": MessageLookupByLibrary.simpleMessage("Discover"),
"homeBookListenAgainDescription": MessageLookupByLibrary.simpleMessage( "homeBookListenAgain":
"Show play button for all books in listen again shelf", MessageLookupByLibrary.simpleMessage("Listen Again"),
), "homeBookListenAgainDescription": MessageLookupByLibrary.simpleMessage(
"homeBookNewestAuthors": MessageLookupByLibrary.simpleMessage( "Show play button for all books in listen again shelf",
"Newest Authors", ),
), "homeBookNewestAuthors": MessageLookupByLibrary.simpleMessage(
"homeBookRecentlyAdded": MessageLookupByLibrary.simpleMessage( "Newest Authors",
"Recently Added", ),
), "homeBookRecentlyAdded": MessageLookupByLibrary.simpleMessage(
"homeBookRecommended": MessageLookupByLibrary.simpleMessage("Recommended"), "Recently Added",
"homeContinueListening": MessageLookupByLibrary.simpleMessage( ),
"Continue Listening", "homeBookRecommended":
), MessageLookupByLibrary.simpleMessage("Recommended"),
"homeListenAgain": MessageLookupByLibrary.simpleMessage("Listen Again"), "homeContinueListening": MessageLookupByLibrary.simpleMessage(
"homePageSettings": MessageLookupByLibrary.simpleMessage( "Continue Listening",
"Home Page Settings", ),
), "homeListenAgain": MessageLookupByLibrary.simpleMessage("Listen Again"),
"homePageSettingsDescription": MessageLookupByLibrary.simpleMessage( "homePageSettings": MessageLookupByLibrary.simpleMessage(
"Customize the home page", "Home Page Settings",
), ),
"homePageSettingsOtherShelves": MessageLookupByLibrary.simpleMessage( "homePageSettingsDescription": MessageLookupByLibrary.simpleMessage(
"Other shelves", "Customize the home page",
), ),
"homePageSettingsOtherShelvesDescription": "homePageSettingsOtherShelves": MessageLookupByLibrary.simpleMessage(
MessageLookupByLibrary.simpleMessage( "Other shelves",
),
"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": MessageLookupByLibrary.simpleMessage( "nmpSettingsMediaControlsDescription":
"Select the media controls to display", MessageLookupByLibrary.simpleMessage(
), "Select the media controls to display",
"nmpSettingsSelectOne": MessageLookupByLibrary.simpleMessage( ),
"Select a field below to insert it", "nmpSettingsSelectOne": MessageLookupByLibrary.simpleMessage(
), "Select a field below to insert it",
"nmpSettingsShowChapterProgress": MessageLookupByLibrary.simpleMessage( ),
"Show Chapter Progress", "nmpSettingsShowChapterProgress": MessageLookupByLibrary.simpleMessage(
), "Show Chapter Progress",
"nmpSettingsShowChapterProgressDescription": ),
MessageLookupByLibrary.simpleMessage( "nmpSettingsShowChapterProgressDescription":
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": MessageLookupByLibrary.simpleMessage("Primary Title"), "nmpSettingsTitle":
"nmpSettingsTitleDescription": MessageLookupByLibrary.simpleMessage( MessageLookupByLibrary.simpleMessage("Primary Title"),
"The title of the notification\n", "nmpSettingsTitleDescription": MessageLookupByLibrary.simpleMessage(
), "The title of the notification\n",
"no": MessageLookupByLibrary.simpleMessage("No"), ),
"notImplemented": MessageLookupByLibrary.simpleMessage("Not implemented"), "no": MessageLookupByLibrary.simpleMessage("No"),
"notificationMediaPlayer": MessageLookupByLibrary.simpleMessage( "notImplemented":
"Notification Media Player", MessageLookupByLibrary.simpleMessage("Not implemented"),
), "notificationMediaPlayer": MessageLookupByLibrary.simpleMessage(
"notificationMediaPlayerDescription": MessageLookupByLibrary.simpleMessage( "Notification Media Player",
"Customize the media player in notifications", ),
), "notificationMediaPlayerDescription":
"ok": MessageLookupByLibrary.simpleMessage("OK"), MessageLookupByLibrary.simpleMessage(
"pause": MessageLookupByLibrary.simpleMessage("Pause"), "Customize the media player in notifications",
"play": MessageLookupByLibrary.simpleMessage("Play"), ),
"playerSettings": MessageLookupByLibrary.simpleMessage("Player Settings"), "ok": MessageLookupByLibrary.simpleMessage("OK"),
"playerSettingsCompleteTime": MessageLookupByLibrary.simpleMessage( "pause": MessageLookupByLibrary.simpleMessage("Pause"),
"Mark Complete When Time Left", "play": MessageLookupByLibrary.simpleMessage("Play"),
), "playerSettings":
"playerSettingsCompleteTimeDescriptionHead": MessageLookupByLibrary.simpleMessage("Player Settings"),
MessageLookupByLibrary.simpleMessage("Mark complete when less than "), "playerSettingsCompleteTime": MessageLookupByLibrary.simpleMessage(
"playerSettingsCompleteTimeDescriptionTail": "Mark Complete When Time Left",
MessageLookupByLibrary.simpleMessage(" left in the book"), ),
"playerSettingsDescription": MessageLookupByLibrary.simpleMessage( "playerSettingsCompleteTimeDescriptionHead":
"Customize the player settings", MessageLookupByLibrary.simpleMessage(
), "Mark complete when less than "),
"playerSettingsDisplay": MessageLookupByLibrary.simpleMessage( "playerSettingsCompleteTimeDescriptionTail":
"Display Settings", MessageLookupByLibrary.simpleMessage(" left in the book"),
), "playerSettingsDescription": MessageLookupByLibrary.simpleMessage(
"playerSettingsDisplayChapterProgress": "Customize the player settings",
MessageLookupByLibrary.simpleMessage("Show Chapter Progress"), ),
"playerSettingsDisplayChapterProgressDescription": "playerSettingsDisplay": MessageLookupByLibrary.simpleMessage(
MessageLookupByLibrary.simpleMessage( "Display Settings",
),
"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": MessageLookupByLibrary.simpleMessage( "playerSettingsDisplayTotalProgress":
"Show Total Progress", MessageLookupByLibrary.simpleMessage(
), "Show Total Progress",
"playerSettingsDisplayTotalProgressDescription": ),
MessageLookupByLibrary.simpleMessage( "playerSettingsDisplayTotalProgressDescription":
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": MessageLookupByLibrary.simpleMessage( "playerSettingsRememberForEveryBook":
"Remember Player Settings for Every Book", MessageLookupByLibrary.simpleMessage(
), "Remember Player Settings for Every Book",
"playerSettingsRememberForEveryBookDescription": ),
MessageLookupByLibrary.simpleMessage( "playerSettingsRememberForEveryBookDescription":
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": MessageLookupByLibrary.simpleMessage( "playerSettingsSpeedOptionsSelect":
"Select Speed Options", MessageLookupByLibrary.simpleMessage(
), "Select Speed Options",
"playerSettingsSpeedOptionsSelectAdd": MessageLookupByLibrary.simpleMessage( ),
"Add Speed Option", "playerSettingsSpeedOptionsSelectAdd":
), MessageLookupByLibrary.simpleMessage(
"playerSettingsSpeedOptionsSelectAddHelper": "Add Speed Option",
MessageLookupByLibrary.simpleMessage("Enter a new speed option to add"), ),
"playerSettingsSpeedSelect": MessageLookupByLibrary.simpleMessage( "playerSettingsSpeedOptionsSelectAddHelper":
"Select Speed", MessageLookupByLibrary.simpleMessage(
), "Enter a new speed option to add"),
"playerSettingsSpeedSelectHelper": MessageLookupByLibrary.simpleMessage( "playerSettingsSpeedSelect": MessageLookupByLibrary.simpleMessage(
"Enter the speed you want to set when playing for the first time", "Select Speed",
), ),
"playlistsMine": MessageLookupByLibrary.simpleMessage("My Playlists"), "playerSettingsSpeedSelectHelper": MessageLookupByLibrary.simpleMessage(
"readLess": MessageLookupByLibrary.simpleMessage("Read Less"), "Enter the speed you want to set when playing for the first time",
"readMore": MessageLookupByLibrary.simpleMessage("Read More"), ),
"refresh": MessageLookupByLibrary.simpleMessage("Refresh"), "playlistsMine": MessageLookupByLibrary.simpleMessage("My Playlists"),
"reset": MessageLookupByLibrary.simpleMessage("Reset"), "readLess": MessageLookupByLibrary.simpleMessage("Read Less"),
"resetAppSettings": MessageLookupByLibrary.simpleMessage( "readMore": MessageLookupByLibrary.simpleMessage("Read More"),
"Reset App Settings", "refresh": MessageLookupByLibrary.simpleMessage("Refresh"),
), "reset": MessageLookupByLibrary.simpleMessage("Reset"),
"resetAppSettingsDescription": MessageLookupByLibrary.simpleMessage( "resetAppSettings": MessageLookupByLibrary.simpleMessage(
"Reset the app settings to the default values", "Reset App Settings",
), ),
"resetAppSettingsDialog": MessageLookupByLibrary.simpleMessage( "resetAppSettingsDescription": MessageLookupByLibrary.simpleMessage(
"Are you sure you want to reset the app settings?", "Reset the app settings to the default values",
), ),
"restore": MessageLookupByLibrary.simpleMessage("Restore"), "resetAppSettingsDialog": MessageLookupByLibrary.simpleMessage(
"restoreBackup": MessageLookupByLibrary.simpleMessage("Restore Backup"), "Are you sure you want to reset the app settings?",
"restoreBackupHint": MessageLookupByLibrary.simpleMessage( ),
"Paste the backup here", "restore": MessageLookupByLibrary.simpleMessage("Restore"),
), "restoreBackup": MessageLookupByLibrary.simpleMessage("Restore Backup"),
"restoreBackupInvalid": MessageLookupByLibrary.simpleMessage( "restoreBackupHint": MessageLookupByLibrary.simpleMessage(
"Invalid backup", "Paste the backup here",
), ),
"restoreBackupSuccess": MessageLookupByLibrary.simpleMessage( "restoreBackupInvalid": MessageLookupByLibrary.simpleMessage(
"Settings restored", "Invalid backup",
), ),
"restoreBackupValidator": MessageLookupByLibrary.simpleMessage( "restoreBackupSuccess": MessageLookupByLibrary.simpleMessage(
"Please paste the backup here", "Settings restored",
), ),
"restoreDescription": MessageLookupByLibrary.simpleMessage( "restoreBackupValidator": MessageLookupByLibrary.simpleMessage(
"Restore the app settings from the backup", "Please paste the backup here",
), ),
"resume": MessageLookupByLibrary.simpleMessage("Resume"), "restoreDescription": MessageLookupByLibrary.simpleMessage(
"retry": MessageLookupByLibrary.simpleMessage("Retry"), "Restore the app settings from the backup",
"settings": MessageLookupByLibrary.simpleMessage("Settings"), ),
"shakeAction": MessageLookupByLibrary.simpleMessage("Shake Action"), "resume": MessageLookupByLibrary.simpleMessage("Resume"),
"shakeActionDescription": MessageLookupByLibrary.simpleMessage( "retry": MessageLookupByLibrary.simpleMessage("Retry"),
"The action to perform when a shake is detected", "settings": MessageLookupByLibrary.simpleMessage("Settings"),
), "shakeAction": MessageLookupByLibrary.simpleMessage("Shake Action"),
"shakeActivationThreshold": MessageLookupByLibrary.simpleMessage( "shakeActionDescription": MessageLookupByLibrary.simpleMessage(
"Shake Activation Threshold", "The action to perform when a shake is detected",
), ),
"shakeActivationThresholdDescription": MessageLookupByLibrary.simpleMessage( "shakeActivationThreshold": MessageLookupByLibrary.simpleMessage(
"The higher the threshold, the harder you need to shake", "Shake Activation Threshold",
), ),
"shakeDetector": MessageLookupByLibrary.simpleMessage("Shake Detector"), "shakeActivationThresholdDescription":
"shakeDetectorDescription": MessageLookupByLibrary.simpleMessage( MessageLookupByLibrary.simpleMessage(
"Customize the shake detector settings", "The higher the threshold, the harder you need to shake",
), ),
"shakeDetectorEnable": MessageLookupByLibrary.simpleMessage( "shakeDetector": MessageLookupByLibrary.simpleMessage("Shake Detector"),
"Enable Shake Detection", "shakeDetectorDescription": MessageLookupByLibrary.simpleMessage(
), "Customize the shake detector settings",
"shakeDetectorEnableDescription": MessageLookupByLibrary.simpleMessage( ),
"Enable shake detection to do various actions", "shakeDetectorEnable": MessageLookupByLibrary.simpleMessage(
), "Enable Shake Detection",
"shakeDetectorSettings": MessageLookupByLibrary.simpleMessage( ),
"Shake Detector Settings", "shakeDetectorEnableDescription": MessageLookupByLibrary.simpleMessage(
), "Enable shake detection to do various actions",
"shakeFeedback": MessageLookupByLibrary.simpleMessage("Shake Feedback"), ),
"shakeFeedbackDescription": MessageLookupByLibrary.simpleMessage( "shakeDetectorSettings": MessageLookupByLibrary.simpleMessage(
"The feedback to give when a shake is detected", "Shake Detector Settings",
), ),
"shakeSelectAction": MessageLookupByLibrary.simpleMessage( "shakeFeedback": MessageLookupByLibrary.simpleMessage("Shake Feedback"),
"Select Shake Action", "shakeFeedbackDescription": MessageLookupByLibrary.simpleMessage(
), "The feedback to give when a shake is detected",
"shakeSelectActivationThreshold": MessageLookupByLibrary.simpleMessage( ),
"Select Shake Activation Threshold", "shakeSelectAction": MessageLookupByLibrary.simpleMessage(
), "Select Shake Action",
"shakeSelectActivationThresholdHelper": ),
MessageLookupByLibrary.simpleMessage( "shakeSelectActivationThreshold": 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": MessageLookupByLibrary.simpleMessage( "themeModeHighContrastDescription":
"Increase the contrast between the background and the text", MessageLookupByLibrary.simpleMessage(
), "Increase the contrast between the background and the text",
"themeModeLight": MessageLookupByLibrary.simpleMessage("Light"), ),
"themeModeSystem": MessageLookupByLibrary.simpleMessage("System"), "themeModeLight": MessageLookupByLibrary.simpleMessage("Light"),
"themeSettings": MessageLookupByLibrary.simpleMessage("Theme Settings"), "themeModeSystem": MessageLookupByLibrary.simpleMessage("System"),
"themeSettingsColors": MessageLookupByLibrary.simpleMessage( "themeSettings": MessageLookupByLibrary.simpleMessage("Theme Settings"),
"Material Theme from System", "themeSettingsColors": MessageLookupByLibrary.simpleMessage(
), "Material Theme from System",
"themeSettingsColorsAndroid": MessageLookupByLibrary.simpleMessage( ),
"Use Material You", "themeSettingsColorsAndroid": MessageLookupByLibrary.simpleMessage(
), "Use Material You",
"themeSettingsColorsBook": MessageLookupByLibrary.simpleMessage( ),
"Adaptive Theme on Item Page", "themeSettingsColorsBook": MessageLookupByLibrary.simpleMessage(
), "Adaptive Theme on Item Page",
"themeSettingsColorsBookDescription": MessageLookupByLibrary.simpleMessage( ),
"Get fancy with the colors on the item page at the cost of some performance", "themeSettingsColorsBookDescription":
), MessageLookupByLibrary.simpleMessage(
"themeSettingsColorsCurrent": MessageLookupByLibrary.simpleMessage( "Get fancy with the colors on the item page at the cost of some performance",
"Adapt theme from currently playing item", ),
), "themeSettingsColorsCurrent": MessageLookupByLibrary.simpleMessage(
"themeSettingsColorsCurrentDescription": "Adapt theme from currently playing item",
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",
), ),
}; };
} }

View file

@ -38,325 +38,354 @@ 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": MessageLookupByLibrary.simpleMessage("已注册服务器"), "accountRegisteredServers":
"accountRemoveServerAndUsers": MessageLookupByLibrary.simpleMessage( MessageLookupByLibrary.simpleMessage("已注册服务器"),
"删除服务器和用户", "accountRemoveServerAndUsers": MessageLookupByLibrary.simpleMessage(
), "删除服务器和用户",
"accountRemoveServerAndUsersHead": MessageLookupByLibrary.simpleMessage( ),
"这将删除服务器 ", "accountRemoveServerAndUsersHead": MessageLookupByLibrary.simpleMessage(
), "这将删除服务器 ",
"accountRemoveServerAndUsersTail": MessageLookupByLibrary.simpleMessage( ),
" 以及该应用程序中所有用户的登录信息。", "accountRemoveServerAndUsersTail": MessageLookupByLibrary.simpleMessage(
), " 以及该应用程序中所有用户的登录信息。",
"accountRemoveUserLogin": MessageLookupByLibrary.simpleMessage("删除用户登录"), ),
"accountRemoveUserLoginHead": MessageLookupByLibrary.simpleMessage( "accountRemoveUserLogin":
"这将删除用户 ", MessageLookupByLibrary.simpleMessage("删除用户登录"),
), "accountRemoveUserLoginHead": MessageLookupByLibrary.simpleMessage(
"accountRemoveUserLoginTail": MessageLookupByLibrary.simpleMessage( "这将删除用户 ",
" 的登录详细信息。", ),
), "accountRemoveUserLoginTail": MessageLookupByLibrary.simpleMessage(
"accountServerURI": MessageLookupByLibrary.simpleMessage("服务器地址"), " 的登录详细信息。",
"accountSwitch": MessageLookupByLibrary.simpleMessage("切换账户"), ),
"accountUsersCount": m1, "accountServerURI": MessageLookupByLibrary.simpleMessage("服务器地址"),
"appSettings": MessageLookupByLibrary.simpleMessage("应用设置"), "accountSwitch": MessageLookupByLibrary.simpleMessage("切换账户"),
"appearance": MessageLookupByLibrary.simpleMessage("外观"), "accountUsersCount": m1,
"autoSleepTimerSettings": MessageLookupByLibrary.simpleMessage("自动睡眠定时器设置"), "appSettings": MessageLookupByLibrary.simpleMessage("应用设置"),
"autoTurnOnSleepTimer": MessageLookupByLibrary.simpleMessage("自动开启睡眠定时器"), "appearance": MessageLookupByLibrary.simpleMessage("外观"),
"autoTurnOnTimer": MessageLookupByLibrary.simpleMessage("自动开启定时器"), "autoSleepTimerSettings":
"autoTurnOnTimerAlways": MessageLookupByLibrary.simpleMessage("始终自动开启定时器"), MessageLookupByLibrary.simpleMessage("自动睡眠定时器设置"),
"autoTurnOnTimerAlwaysDescription": MessageLookupByLibrary.simpleMessage( "autoTurnOnSleepTimer":
"总是打开睡眠定时器", MessageLookupByLibrary.simpleMessage("自动开启睡眠定时器"),
), "autoTurnOnTimer": MessageLookupByLibrary.simpleMessage("自动开启定时器"),
"autoTurnOnTimerDescription": MessageLookupByLibrary.simpleMessage( "autoTurnOnTimerAlways":
"根据一天中的时间自动打开睡眠定时器", MessageLookupByLibrary.simpleMessage("始终自动开启定时器"),
), "autoTurnOnTimerAlwaysDescription":
"autoTurnOnTimerFrom": MessageLookupByLibrary.simpleMessage(""), 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("直到"),
"backup": MessageLookupByLibrary.simpleMessage("备份"), "autoTurnOnTimerUntilDescription": MessageLookupByLibrary.simpleMessage(
"backupAndRestore": MessageLookupByLibrary.simpleMessage("备份与恢复"), "在指定时间关闭睡眠定时器",
"bookAbout": MessageLookupByLibrary.simpleMessage("关于本书"), ),
"bookAboutDefault": MessageLookupByLibrary.simpleMessage("抱歉,找不到描述"), "automaticallyDescription": MessageLookupByLibrary.simpleMessage(
"bookAuthors": MessageLookupByLibrary.simpleMessage("作者"), "根据一天中的时间自动打开睡眠定时器",
"bookDownloads": MessageLookupByLibrary.simpleMessage("下载"), ),
"bookGenres": MessageLookupByLibrary.simpleMessage("风格"), "backup": MessageLookupByLibrary.simpleMessage("备份"),
"bookMetadataAbridged": MessageLookupByLibrary.simpleMessage("删节版"), "backupAndRestore": MessageLookupByLibrary.simpleMessage("备份与恢复"),
"bookMetadataLength": MessageLookupByLibrary.simpleMessage("持续时间"), "bookAbout": MessageLookupByLibrary.simpleMessage("关于本书"),
"bookMetadataPublished": MessageLookupByLibrary.simpleMessage("发布年份"), "bookAboutDefault": MessageLookupByLibrary.simpleMessage("抱歉,找不到描述"),
"bookMetadataUnabridged": MessageLookupByLibrary.simpleMessage("未删节版"), "bookAuthors": MessageLookupByLibrary.simpleMessage("作者"),
"bookSeries": MessageLookupByLibrary.simpleMessage("系列"), "bookDownloads": MessageLookupByLibrary.simpleMessage("下载"),
"bookShelveEmpty": MessageLookupByLibrary.simpleMessage("重试"), "bookGenres": MessageLookupByLibrary.simpleMessage("风格"),
"bookShelveEmptyText": MessageLookupByLibrary.simpleMessage("未查询到书架"), "bookMetadataAbridged": MessageLookupByLibrary.simpleMessage("删节版"),
"cancel": MessageLookupByLibrary.simpleMessage("取消"), "bookMetadataLength": MessageLookupByLibrary.simpleMessage("持续时间"),
"chapterNotFound": MessageLookupByLibrary.simpleMessage("未找到章节"), "bookMetadataPublished": MessageLookupByLibrary.simpleMessage("发布年份"),
"chapterSelect": MessageLookupByLibrary.simpleMessage("选择章节"), "bookMetadataUnabridged": MessageLookupByLibrary.simpleMessage("未删节版"),
"chapterSkip": MessageLookupByLibrary.simpleMessage("跳过章节片头片尾"), "bookSeries": MessageLookupByLibrary.simpleMessage("系列"),
"chapterSkipEnd": MessageLookupByLibrary.simpleMessage("跳过章节片尾 "), "bookShelveEmpty": MessageLookupByLibrary.simpleMessage("重试"),
"chapterSkipOpen": MessageLookupByLibrary.simpleMessage("跳过章节片头 "), "bookShelveEmptyText": MessageLookupByLibrary.simpleMessage("未查询到书架"),
"chapters": MessageLookupByLibrary.simpleMessage("章节列表"), "cancel": MessageLookupByLibrary.simpleMessage("取消"),
"copyToClipboard": MessageLookupByLibrary.simpleMessage("复制到剪贴板"), "chapterNotFound": MessageLookupByLibrary.simpleMessage("未找到章节"),
"copyToClipboardDescription": MessageLookupByLibrary.simpleMessage( "chapterSelect": MessageLookupByLibrary.simpleMessage("选择章节"),
"将应用程序设置复制到剪贴板", "chapterSkip": MessageLookupByLibrary.simpleMessage("跳过章节片头片尾"),
), "chapterSkipEnd": MessageLookupByLibrary.simpleMessage("跳过章节片尾 "),
"copyToClipboardToast": MessageLookupByLibrary.simpleMessage("设置已复制到剪贴板"), "chapterSkipOpen": MessageLookupByLibrary.simpleMessage("跳过章节片头 "),
"delete": MessageLookupByLibrary.simpleMessage("删除"), "chapters": MessageLookupByLibrary.simpleMessage("章节列表"),
"deleteDialog": m2, "copyToClipboard": MessageLookupByLibrary.simpleMessage("复制到剪贴板"),
"deleted": m3, "copyToClipboardDescription": MessageLookupByLibrary.simpleMessage(
"explore": MessageLookupByLibrary.simpleMessage("探索"), "将应用程序设置复制到剪贴板",
"exploreHint": MessageLookupByLibrary.simpleMessage("搜索与探索..."), ),
"exploreTooltip": MessageLookupByLibrary.simpleMessage("搜索和探索"), "copyToClipboardToast":
"general": MessageLookupByLibrary.simpleMessage("通用"), MessageLookupByLibrary.simpleMessage("设置已复制到剪贴板"),
"help": MessageLookupByLibrary.simpleMessage("Help"), "delete": MessageLookupByLibrary.simpleMessage("删除"),
"home": MessageLookupByLibrary.simpleMessage("首页"), "deleteDialog": m2,
"homeBookContinueListening": MessageLookupByLibrary.simpleMessage("继续收听"), "deleted": m3,
"homeBookContinueListeningDescription": "explore": MessageLookupByLibrary.simpleMessage("探索"),
MessageLookupByLibrary.simpleMessage("继续收听书架上显示播放按钮"), "exploreHint": MessageLookupByLibrary.simpleMessage("搜索与探索..."),
"homeBookContinueSeries": MessageLookupByLibrary.simpleMessage("继续系列"), "exploreTooltip": MessageLookupByLibrary.simpleMessage("搜索和探索"),
"homeBookContinueSeriesDescription": MessageLookupByLibrary.simpleMessage( "general": MessageLookupByLibrary.simpleMessage("通用"),
"继续系列书架上显示播放按钮", "help": MessageLookupByLibrary.simpleMessage("Help"),
), "home": MessageLookupByLibrary.simpleMessage("首页"),
"homeBookDiscover": MessageLookupByLibrary.simpleMessage("发现"), "homeBookContinueListening":
"homeBookListenAgain": MessageLookupByLibrary.simpleMessage("再听一遍"), MessageLookupByLibrary.simpleMessage("继续收听"),
"homeBookListenAgainDescription": MessageLookupByLibrary.simpleMessage( "homeBookContinueListeningDescription":
"再听一遍书架上显示播放按钮", MessageLookupByLibrary.simpleMessage("继续收听书架上显示播放按钮"),
), "homeBookContinueSeries": MessageLookupByLibrary.simpleMessage("继续系列"),
"homeBookNewestAuthors": MessageLookupByLibrary.simpleMessage("最新作者"), "homeBookContinueSeriesDescription":
"homeBookRecentlyAdded": MessageLookupByLibrary.simpleMessage("最近添加"), MessageLookupByLibrary.simpleMessage(
"homeBookRecommended": MessageLookupByLibrary.simpleMessage("推荐"), "继续系列书架上显示播放按钮",
"homeContinueListening": MessageLookupByLibrary.simpleMessage("继续收听"), ),
"homeListenAgain": MessageLookupByLibrary.simpleMessage("再听一遍"), "homeBookDiscover": MessageLookupByLibrary.simpleMessage("发现"),
"homePageSettings": MessageLookupByLibrary.simpleMessage("主页设置"), "homeBookListenAgain": MessageLookupByLibrary.simpleMessage("再听一遍"),
"homePageSettingsDescription": MessageLookupByLibrary.simpleMessage( "homeBookListenAgainDescription": MessageLookupByLibrary.simpleMessage(
"自定义主页", "再听一遍书架上显示播放按钮",
), ),
"homePageSettingsOtherShelves": MessageLookupByLibrary.simpleMessage( "homeBookNewestAuthors": MessageLookupByLibrary.simpleMessage("最新作者"),
"其他书架", "homeBookRecentlyAdded": MessageLookupByLibrary.simpleMessage("最近添加"),
), "homeBookRecommended": MessageLookupByLibrary.simpleMessage("推荐"),
"homePageSettingsOtherShelvesDescription": "homeContinueListening": MessageLookupByLibrary.simpleMessage("继续收听"),
MessageLookupByLibrary.simpleMessage("显示所有剩余书架上所有书籍的播放按钮"), "homeListenAgain": MessageLookupByLibrary.simpleMessage("再听一遍"),
"homePageSettingsQuickPlay": MessageLookupByLibrary.simpleMessage("继续播放"), "homePageSettings": MessageLookupByLibrary.simpleMessage("主页设置"),
"homeStartListening": MessageLookupByLibrary.simpleMessage("开始收听"), "homePageSettingsDescription": MessageLookupByLibrary.simpleMessage(
"language": MessageLookupByLibrary.simpleMessage("语言"), "自定义主页",
"languageDescription": MessageLookupByLibrary.simpleMessage("语言切换"), ),
"library": MessageLookupByLibrary.simpleMessage("媒体库"), "homePageSettingsOtherShelves": MessageLookupByLibrary.simpleMessage(
"libraryChange": MessageLookupByLibrary.simpleMessage("更改媒体库"), "其他书架",
"libraryEmpty": MessageLookupByLibrary.simpleMessage("没有可用的库。"), ),
"libraryLoadError": m4, "homePageSettingsOtherShelvesDescription":
"librarySelect": MessageLookupByLibrary.simpleMessage("选择媒体库"), MessageLookupByLibrary.simpleMessage("显示所有剩余书架上所有书籍的播放按钮"),
"librarySwitchTooltip": MessageLookupByLibrary.simpleMessage("切换媒体库"), "homePageSettingsQuickPlay":
"libraryTooltip": MessageLookupByLibrary.simpleMessage("浏览您的媒体库"), MessageLookupByLibrary.simpleMessage("继续播放"),
"loading": MessageLookupByLibrary.simpleMessage("加载中..."), "homeStartListening": MessageLookupByLibrary.simpleMessage("开始收听"),
"loginLocal": MessageLookupByLibrary.simpleMessage("Local"), "language": MessageLookupByLibrary.simpleMessage("语言"),
"loginLogin": MessageLookupByLibrary.simpleMessage("登录"), "languageDescription": MessageLookupByLibrary.simpleMessage("语言切换"),
"loginOpenID": MessageLookupByLibrary.simpleMessage("OpenID"), "library": MessageLookupByLibrary.simpleMessage("媒体库"),
"loginPassword": MessageLookupByLibrary.simpleMessage("密码"), "libraryChange": MessageLookupByLibrary.simpleMessage("更改媒体库"),
"loginServerClick": MessageLookupByLibrary.simpleMessage("单击此处"), "libraryEmpty": MessageLookupByLibrary.simpleMessage("没有可用的库。"),
"loginServerConnected": MessageLookupByLibrary.simpleMessage("服务器已连接,请登录"), "libraryLoadError": m4,
"loginServerNo": MessageLookupByLibrary.simpleMessage("没有服务器? "), "librarySelect": MessageLookupByLibrary.simpleMessage("选择媒体库"),
"loginServerNoConnected": MessageLookupByLibrary.simpleMessage( "librarySwitchTooltip": MessageLookupByLibrary.simpleMessage("切换媒体库"),
"请输入您的AudiobookShelf服务器的URL", "libraryTooltip": MessageLookupByLibrary.simpleMessage("浏览您的媒体库"),
), "loading": MessageLookupByLibrary.simpleMessage("加载中..."),
"loginServerNot": m5, "loginLocal": MessageLookupByLibrary.simpleMessage("Local"),
"loginServerTo": MessageLookupByLibrary.simpleMessage(" 了解如何设置服务器。"), "loginLogin": MessageLookupByLibrary.simpleMessage("登录"),
"loginTitle": m6, "loginOpenID": MessageLookupByLibrary.simpleMessage("OpenID"),
"loginToken": MessageLookupByLibrary.simpleMessage("Token"), "loginPassword": MessageLookupByLibrary.simpleMessage("密码"),
"loginUsername": MessageLookupByLibrary.simpleMessage("用户名"), "loginServerClick": MessageLookupByLibrary.simpleMessage("单击此处"),
"logs": MessageLookupByLibrary.simpleMessage("日志"), "loginServerConnected":
"nmpSettingsBackward": MessageLookupByLibrary.simpleMessage("快退间隔"), MessageLookupByLibrary.simpleMessage("服务器已连接,请登录"),
"nmpSettingsForward": MessageLookupByLibrary.simpleMessage("快进间隔"), "loginServerNo": MessageLookupByLibrary.simpleMessage("没有服务器? "),
"nmpSettingsMediaControls": MessageLookupByLibrary.simpleMessage("媒体控制"), "loginServerNoConnected": MessageLookupByLibrary.simpleMessage(
"nmpSettingsMediaControlsDescription": MessageLookupByLibrary.simpleMessage( "请输入您的AudiobookShelf服务器的URL",
"选择要显示的媒体控件", ),
), "loginServerNot": m5,
"nmpSettingsSelectOne": MessageLookupByLibrary.simpleMessage( "loginServerTo": MessageLookupByLibrary.simpleMessage(" 了解如何设置服务器。"),
"在下面选择一个字段进行插入", "loginTitle": m6,
), "loginToken": MessageLookupByLibrary.simpleMessage("Token"),
"nmpSettingsShowChapterProgress": MessageLookupByLibrary.simpleMessage( "loginUsername": MessageLookupByLibrary.simpleMessage("用户名"),
"显示章节进度", "logs": MessageLookupByLibrary.simpleMessage("日志"),
), "nmpSettingsBackward": MessageLookupByLibrary.simpleMessage("快退间隔"),
"nmpSettingsShowChapterProgressDescription": "nmpSettingsForward": MessageLookupByLibrary.simpleMessage("快进间隔"),
MessageLookupByLibrary.simpleMessage("而不是本书的整体进展"), "nmpSettingsMediaControls":
"nmpSettingsSubTitle": MessageLookupByLibrary.simpleMessage("副标题"), MessageLookupByLibrary.simpleMessage("媒体控制"),
"nmpSettingsSubTitleDescription": MessageLookupByLibrary.simpleMessage( "nmpSettingsMediaControlsDescription":
"通知的副标题\n", MessageLookupByLibrary.simpleMessage(
), "选择要显示的媒体控件",
"nmpSettingsTitle": MessageLookupByLibrary.simpleMessage("主标题"), ),
"nmpSettingsTitleDescription": MessageLookupByLibrary.simpleMessage( "nmpSettingsSelectOne": MessageLookupByLibrary.simpleMessage(
"通知的标题\n", "在下面选择一个字段进行插入",
), ),
"no": MessageLookupByLibrary.simpleMessage(""), "nmpSettingsShowChapterProgress": MessageLookupByLibrary.simpleMessage(
"notImplemented": MessageLookupByLibrary.simpleMessage("未实现"), "显示章节进度",
"notificationMediaPlayer": MessageLookupByLibrary.simpleMessage("通知媒体播放器"), ),
"notificationMediaPlayerDescription": MessageLookupByLibrary.simpleMessage( "nmpSettingsShowChapterProgressDescription":
"在通知中自定义媒体播放器", MessageLookupByLibrary.simpleMessage("而不是本书的整体进展"),
), "nmpSettingsSubTitle": MessageLookupByLibrary.simpleMessage("副标题"),
"ok": MessageLookupByLibrary.simpleMessage("确定"), "nmpSettingsSubTitleDescription": MessageLookupByLibrary.simpleMessage(
"pause": MessageLookupByLibrary.simpleMessage("暂停"), "通知的副标题\n",
"play": MessageLookupByLibrary.simpleMessage("播放"), ),
"playerSettings": MessageLookupByLibrary.simpleMessage("播放器设置"), "nmpSettingsTitle": MessageLookupByLibrary.simpleMessage("主标题"),
"playerSettingsCompleteTime": MessageLookupByLibrary.simpleMessage( "nmpSettingsTitleDescription": MessageLookupByLibrary.simpleMessage(
"剩余时间标记完成", "通知的标题\n",
), ),
"playerSettingsCompleteTimeDescriptionHead": "no": MessageLookupByLibrary.simpleMessage(""),
MessageLookupByLibrary.simpleMessage("当书中剩余时间少于 "), "notImplemented": MessageLookupByLibrary.simpleMessage("未实现"),
"playerSettingsCompleteTimeDescriptionTail": "notificationMediaPlayer":
MessageLookupByLibrary.simpleMessage(" 时,标记完成"), MessageLookupByLibrary.simpleMessage("通知媒体播放器"),
"playerSettingsDescription": MessageLookupByLibrary.simpleMessage( "notificationMediaPlayerDescription":
"自定义播放器设置", MessageLookupByLibrary.simpleMessage(
), "在通知中自定义媒体播放器",
"playerSettingsDisplay": MessageLookupByLibrary.simpleMessage("显示设置"), ),
"playerSettingsDisplayChapterProgress": "ok": MessageLookupByLibrary.simpleMessage("确定"),
MessageLookupByLibrary.simpleMessage("显示章节进度"), "pause": MessageLookupByLibrary.simpleMessage("暂停"),
"playerSettingsDisplayChapterProgressDescription": "play": MessageLookupByLibrary.simpleMessage("播放"),
MessageLookupByLibrary.simpleMessage("在播放器中显示当前章节的进度"), "playerSettings": MessageLookupByLibrary.simpleMessage("播放器设置"),
"playerSettingsDisplayTotalProgress": MessageLookupByLibrary.simpleMessage( "playerSettingsCompleteTime": MessageLookupByLibrary.simpleMessage(
"显示总进度", "剩余时间标记完成",
), ),
"playerSettingsDisplayTotalProgressDescription": "playerSettingsCompleteTimeDescriptionHead":
MessageLookupByLibrary.simpleMessage("在播放器中显示当前书籍的总进度"), MessageLookupByLibrary.simpleMessage("当书中剩余时间少于 "),
"playerSettingsPlaybackInterval": MessageLookupByLibrary.simpleMessage( "playerSettingsCompleteTimeDescriptionTail":
"播放报告间隔", MessageLookupByLibrary.simpleMessage(" 时,标记完成"),
), "playerSettingsDescription": MessageLookupByLibrary.simpleMessage(
"playerSettingsPlaybackIntervalDescriptionHead": "自定义播放器设置",
MessageLookupByLibrary.simpleMessage(""), ),
"playerSettingsPlaybackIntervalDescriptionTail": "playerSettingsDisplay": MessageLookupByLibrary.simpleMessage("显示设置"),
MessageLookupByLibrary.simpleMessage(" 向服务器报告一次进度"), "playerSettingsDisplayChapterProgress":
"playerSettingsPlaybackReporting": MessageLookupByLibrary.simpleMessage( MessageLookupByLibrary.simpleMessage("显示章节进度"),
"回放报告", "playerSettingsDisplayChapterProgressDescription":
), MessageLookupByLibrary.simpleMessage("在播放器中显示当前章节的进度"),
"playerSettingsPlaybackReportingIgnore": "playerSettingsDisplayTotalProgress":
MessageLookupByLibrary.simpleMessage("忽略播放位置小于"), MessageLookupByLibrary.simpleMessage(
"playerSettingsPlaybackReportingMinimum": "显示总进度",
MessageLookupByLibrary.simpleMessage("回放报告最小位置"), ),
"playerSettingsPlaybackReportingMinimumDescriptionHead": "playerSettingsDisplayTotalProgressDescription":
MessageLookupByLibrary.simpleMessage("不要报告本书前 "), MessageLookupByLibrary.simpleMessage("在播放器中显示当前书籍的总进度"),
"playerSettingsPlaybackReportingMinimumDescriptionTail": "playerSettingsPlaybackInterval": MessageLookupByLibrary.simpleMessage(
MessageLookupByLibrary.simpleMessage(" 的播放"), "播放报告间隔",
"playerSettingsRememberForEveryBook": MessageLookupByLibrary.simpleMessage( ),
"记住每本书的播放器设置", "playerSettingsPlaybackIntervalDescriptionHead":
), MessageLookupByLibrary.simpleMessage(""),
"playerSettingsRememberForEveryBookDescription": "playerSettingsPlaybackIntervalDescriptionTail":
MessageLookupByLibrary.simpleMessage("每本书都会记住播放速度、音量等设置"), MessageLookupByLibrary.simpleMessage(" 向服务器报告一次进度"),
"playerSettingsSpeed": MessageLookupByLibrary.simpleMessage("播放速度"), "playerSettingsPlaybackReporting": MessageLookupByLibrary.simpleMessage(
"playerSettingsSpeedDefault": MessageLookupByLibrary.simpleMessage( "回放报告",
"默认播放速度", ),
), "playerSettingsPlaybackReportingIgnore":
"playerSettingsSpeedOptions": MessageLookupByLibrary.simpleMessage( MessageLookupByLibrary.simpleMessage("忽略播放位置小于"),
"播放速度选项", "playerSettingsPlaybackReportingMinimum":
), MessageLookupByLibrary.simpleMessage("回放报告最小位置"),
"playerSettingsSpeedOptionsSelect": MessageLookupByLibrary.simpleMessage( "playerSettingsPlaybackReportingMinimumDescriptionHead":
"播放速度选项", MessageLookupByLibrary.simpleMessage("不要报告本书前 "),
), "playerSettingsPlaybackReportingMinimumDescriptionTail":
"playerSettingsSpeedOptionsSelectAdd": MessageLookupByLibrary.simpleMessage( MessageLookupByLibrary.simpleMessage(" 的播放"),
"添加一个速度选项", "playerSettingsRememberForEveryBook":
), MessageLookupByLibrary.simpleMessage(
"playerSettingsSpeedOptionsSelectAddHelper": "记住每本书的播放器设置",
MessageLookupByLibrary.simpleMessage("输入一个新的速度选项"), ),
"playerSettingsSpeedSelect": MessageLookupByLibrary.simpleMessage("选择播放速度"), "playerSettingsRememberForEveryBookDescription":
"playerSettingsSpeedSelectHelper": MessageLookupByLibrary.simpleMessage( MessageLookupByLibrary.simpleMessage("每本书都会记住播放速度、音量等设置"),
"输入默认的播放速度", "playerSettingsSpeed": MessageLookupByLibrary.simpleMessage("播放速度"),
), "playerSettingsSpeedDefault": MessageLookupByLibrary.simpleMessage(
"playlistsMine": MessageLookupByLibrary.simpleMessage("播放列表"), "默认播放速度",
"readLess": MessageLookupByLibrary.simpleMessage("折叠"), ),
"readMore": MessageLookupByLibrary.simpleMessage("展开"), "playerSettingsSpeedOptions": MessageLookupByLibrary.simpleMessage(
"refresh": MessageLookupByLibrary.simpleMessage("刷新"), "播放速度选项",
"reset": MessageLookupByLibrary.simpleMessage("重置"), ),
"resetAppSettings": MessageLookupByLibrary.simpleMessage("重置应用程序设置"), "playerSettingsSpeedOptionsSelect":
"resetAppSettingsDescription": MessageLookupByLibrary.simpleMessage( MessageLookupByLibrary.simpleMessage(
"将应用程序设置重置为默认值", "播放速度选项",
), ),
"resetAppSettingsDialog": MessageLookupByLibrary.simpleMessage( "playerSettingsSpeedOptionsSelectAdd":
"您确定要重置应用程序设置吗?", MessageLookupByLibrary.simpleMessage(
), "添加一个速度选项",
"restore": MessageLookupByLibrary.simpleMessage("恢复"), ),
"restoreBackup": MessageLookupByLibrary.simpleMessage("恢复备份"), "playerSettingsSpeedOptionsSelectAddHelper":
"restoreBackupHint": MessageLookupByLibrary.simpleMessage("将备份粘贴到此处"), MessageLookupByLibrary.simpleMessage("输入一个新的速度选项"),
"restoreBackupInvalid": MessageLookupByLibrary.simpleMessage("无效备份"), "playerSettingsSpeedSelect":
"restoreBackupSuccess": MessageLookupByLibrary.simpleMessage("设置已恢复"), MessageLookupByLibrary.simpleMessage("选择播放速度"),
"restoreBackupValidator": MessageLookupByLibrary.simpleMessage("请将备份粘贴到此处"), "playerSettingsSpeedSelectHelper": MessageLookupByLibrary.simpleMessage(
"restoreDescription": MessageLookupByLibrary.simpleMessage("从备份中还原应用程序设置"), "输入默认的播放速度",
"resume": MessageLookupByLibrary.simpleMessage("继续"), ),
"retry": MessageLookupByLibrary.simpleMessage("重试"), "playlistsMine": MessageLookupByLibrary.simpleMessage("播放列表"),
"settings": MessageLookupByLibrary.simpleMessage("设置"), "readLess": MessageLookupByLibrary.simpleMessage("折叠"),
"shakeAction": MessageLookupByLibrary.simpleMessage("抖动操作"), "readMore": MessageLookupByLibrary.simpleMessage("展开"),
"shakeActionDescription": MessageLookupByLibrary.simpleMessage( "refresh": MessageLookupByLibrary.simpleMessage("刷新"),
"检测到抖动时要执行的操作", "reset": MessageLookupByLibrary.simpleMessage("重置"),
), "resetAppSettings": MessageLookupByLibrary.simpleMessage("重置应用程序设置"),
"shakeActivationThreshold": MessageLookupByLibrary.simpleMessage("抖动激活阈值"), "resetAppSettingsDescription": MessageLookupByLibrary.simpleMessage(
"shakeActivationThresholdDescription": MessageLookupByLibrary.simpleMessage( "将应用程序设置重置为默认值",
"门槛越高,你就越难摇晃", ),
), "resetAppSettingsDialog": MessageLookupByLibrary.simpleMessage(
"shakeDetector": MessageLookupByLibrary.simpleMessage("抖动检测器"), "您确定要重置应用程序设置吗?",
"shakeDetectorDescription": MessageLookupByLibrary.simpleMessage( ),
"自定义抖动检测器设置", "restore": MessageLookupByLibrary.simpleMessage("恢复"),
), "restoreBackup": MessageLookupByLibrary.simpleMessage("恢复备份"),
"shakeDetectorEnable": MessageLookupByLibrary.simpleMessage("启用抖动检测"), "restoreBackupHint": MessageLookupByLibrary.simpleMessage("将备份粘贴到此处"),
"shakeDetectorEnableDescription": MessageLookupByLibrary.simpleMessage( "restoreBackupInvalid": MessageLookupByLibrary.simpleMessage("无效备份"),
"启用抖动检测以执行各种操作", "restoreBackupSuccess": MessageLookupByLibrary.simpleMessage("设置已恢复"),
), "restoreBackupValidator":
"shakeDetectorSettings": MessageLookupByLibrary.simpleMessage("抖动检测器设置"), MessageLookupByLibrary.simpleMessage("请将备份粘贴到此处"),
"shakeFeedback": MessageLookupByLibrary.simpleMessage("抖动反馈"), "restoreDescription":
"shakeFeedbackDescription": MessageLookupByLibrary.simpleMessage( MessageLookupByLibrary.simpleMessage("从备份中还原应用程序设置"),
"检测到抖动时给出的反馈", "resume": MessageLookupByLibrary.simpleMessage("继续"),
), "retry": MessageLookupByLibrary.simpleMessage("重试"),
"shakeSelectAction": MessageLookupByLibrary.simpleMessage("选择抖动动作"), "settings": MessageLookupByLibrary.simpleMessage("设置"),
"shakeSelectActivationThreshold": MessageLookupByLibrary.simpleMessage( "shakeAction": MessageLookupByLibrary.simpleMessage("抖动操作"),
"选择抖动激活阈值", "shakeActionDescription": MessageLookupByLibrary.simpleMessage(
), "检测到抖动时要执行的操作",
"shakeSelectActivationThresholdHelper": ),
MessageLookupByLibrary.simpleMessage("输入一个数字以m/s²为单位设置阈值"), "shakeActivationThreshold":
"shakeSelectFeedback": MessageLookupByLibrary.simpleMessage("选择抖动反馈"), MessageLookupByLibrary.simpleMessage("抖动激活阈值"),
"themeMode": MessageLookupByLibrary.simpleMessage("主题模式"), "shakeActivationThresholdDescription":
"themeModeDark": MessageLookupByLibrary.simpleMessage("深色"), MessageLookupByLibrary.simpleMessage(
"themeModeHighContrast": MessageLookupByLibrary.simpleMessage("高对比度模式"), "门槛越高,你就越难摇晃",
"themeModeHighContrastDescription": MessageLookupByLibrary.simpleMessage( ),
"增加背景和文本之间的对比度", "shakeDetector": MessageLookupByLibrary.simpleMessage("抖动检测器"),
), "shakeDetectorDescription": MessageLookupByLibrary.simpleMessage(
"themeModeLight": MessageLookupByLibrary.simpleMessage("浅色"), "自定义抖动检测器设置",
"themeModeSystem": MessageLookupByLibrary.simpleMessage("跟随系统"), ),
"themeSettings": MessageLookupByLibrary.simpleMessage("主题设置"), "shakeDetectorEnable": MessageLookupByLibrary.simpleMessage("启用抖动检测"),
"themeSettingsColors": MessageLookupByLibrary.simpleMessage("主题色"), "shakeDetectorEnableDescription": MessageLookupByLibrary.simpleMessage(
"themeSettingsColorsAndroid": MessageLookupByLibrary.simpleMessage("主题色"), "启用抖动检测以执行各种操作",
"themeSettingsColorsBook": MessageLookupByLibrary.simpleMessage( ),
"书籍详情页自适应主题", "shakeDetectorSettings":
), MessageLookupByLibrary.simpleMessage("抖动检测器设置"),
"themeSettingsColorsBookDescription": MessageLookupByLibrary.simpleMessage( "shakeFeedback": MessageLookupByLibrary.simpleMessage("抖动反馈"),
"以牺牲一些性能为代价,对书籍详情页的颜色进行美化", "shakeFeedbackDescription": MessageLookupByLibrary.simpleMessage(
), "检测到抖动时给出的反馈",
"themeSettingsColorsCurrent": MessageLookupByLibrary.simpleMessage( ),
"根据当前播放的书籍调整主题", "shakeSelectAction": MessageLookupByLibrary.simpleMessage("选择抖动动作"),
), "shakeSelectActivationThreshold": MessageLookupByLibrary.simpleMessage(
"themeSettingsColorsCurrentDescription": "选择抖动激活阈值",
MessageLookupByLibrary.simpleMessage("使用当前播放书籍的主题颜色"), ),
"themeSettingsColorsDescription": MessageLookupByLibrary.simpleMessage( "shakeSelectActivationThresholdHelper":
"使用应用程序的系统主题色", MessageLookupByLibrary.simpleMessage("输入一个数字以m/s²为单位设置阈值"),
), "shakeSelectFeedback": MessageLookupByLibrary.simpleMessage("选择抖动反馈"),
"themeSettingsDescription": MessageLookupByLibrary.simpleMessage("自定义应用主题"), "themeMode": MessageLookupByLibrary.simpleMessage("主题模式"),
"timeSecond": m7, "themeModeDark": MessageLookupByLibrary.simpleMessage("深色"),
"unknown": MessageLookupByLibrary.simpleMessage("未知"), "themeModeHighContrast": MessageLookupByLibrary.simpleMessage("高对比度模式"),
"webVersion": MessageLookupByLibrary.simpleMessage("Web版本"), "themeModeHighContrastDescription":
"yes": MessageLookupByLibrary.simpleMessage(""), 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("您的个人资料和设置"),
};
} }

View file

@ -160,7 +160,6 @@ class AbsApp extends ConsumerWidget {
); );
try { try {
return MaterialApp.router( return MaterialApp.router(
// debugShowCheckedModeBanner: false,
locale: Locale(appSettings.language), locale: Locale(appSettings.language),
localizationsDelegates: [ localizationsDelegates: [
// //
@ -175,6 +174,7 @@ class AbsApp extends ConsumerWidget {
themeMode: themeSettings.themeMode, themeMode: themeSettings.themeMode,
routerConfig: routerConfig, routerConfig: routerConfig,
themeAnimationCurve: Curves.easeInOut, themeAnimationCurve: Curves.easeInOut,
debugShowCheckedModeBanner: false,
); );
} catch (e) { } catch (e) {
debugPrintStack(stackTrace: StackTrace.current, label: e.toString()); debugPrintStack(stackTrace: StackTrace.current, label: e.toString());

View file

@ -1,12 +1,20 @@
import 'dart:math';
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_staggered_grid_view/flutter_staggered_grid_view.dart';
import 'package:go_router/go_router.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:shelfsdk/audiobookshelf_api.dart';
import 'package:vaani/api/api_provider.dart'; import 'package:vaani/api/api_provider.dart';
import 'package:vaani/globals.dart'; import 'package:vaani/api/image_provider.dart';
import 'package:vaani/features/settings/api_settings_provider.dart'; import 'package:vaani/api/library_provider.dart';
import 'package:vaani/features/you/view/widgets/library_switch_chip.dart';
import '../shared/widgets/drawer.dart'; import 'package:vaani/generated/l10n.dart';
import '../shared/widgets/shelves/home_shelf.dart'; import 'package:vaani/router/router.dart';
import 'package:vaani/shared/extensions/model_conversions.dart';
import 'package:vaani/shared/icons/abs_icons.dart';
import 'package:vaani/shared/widgets/shelves/book_shelf.dart';
// TODO: implement the library page // TODO: implement the library page
class LibraryPage extends HookConsumerWidget { class LibraryPage extends HookConsumerWidget {
@ -15,20 +23,28 @@ class LibraryPage extends HookConsumerWidget {
final String? libraryId; final String? libraryId;
@override @override
Widget build(BuildContext context, WidgetRef ref) { Widget build(BuildContext context, WidgetRef ref) {
// set the library id as the active library final currentLibrary = ref.watch(currentLibraryProvider).valueOrNull;
if (libraryId != null) {
ref.read(apiSettingsProvider.notifier).updateState(
ref.watch(apiSettingsProvider).copyWith(activeLibraryId: libraryId),
);
}
final views = ref.watch(personalizedViewProvider); // Determine the icon to use, with a fallback
final IconData libraryIconData =
AbsIcons.getIconByName(currentLibrary?.icon) ?? Icons.library_books;
// Determine the title text
final String appBarTitle = currentLibrary?.name ?? S.of(context).library;
// set the library id as the active library
// if (libraryId != null) {
// ref.read(apiSettingsProvider.notifier).updateState(
// ref.watch(apiSettingsProvider).copyWith(activeLibraryId: libraryId),
// );
// }
final views = ref.watch(currentLibraryItemsProvider);
final scrollController = useScrollController(); final scrollController = useScrollController();
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: GestureDetector( title: GestureDetector(
child: const Text('Vaani'), child: Text(appBarTitle),
onTap: () { onTap: () {
// scroll to the top of the page // scroll to the top of the page
scrollController.animateTo( scrollController.animateTo(
@ -40,34 +56,57 @@ class LibraryPage extends HookConsumerWidget {
ref.invalidate(personalizedViewProvider); ref.invalidate(personalizedViewProvider);
}, },
), ),
leading: IconButton(
icon: Icon(libraryIconData),
tooltip:
S.of(context).librarySwitchTooltip, // Helpful tooltip for users
onPressed: () {
showLibrarySwitcher(context, ref);
},
),
actions: [
IconButton(
icon: Icon(Icons.refresh),
tooltip: '刷新', // Helpful tooltip for users
onPressed: () {
return ref.refresh(currentLibraryItemsProvider);
},
),
IconButton(
icon: Icon(Icons.download),
tooltip: S.of(context).bookDownloads, // Helpful tooltip for users
onPressed: () {
GoRouter.of(context).pushNamed(Routes.downloads.name);
},
),
],
), ),
drawer: const MyDrawer(), // drawer: const MyDrawer(),
body: Container( body: RefreshIndicator(
onRefresh: () async {
return ref.refresh(currentLibraryItemsProvider);
},
child: views.when( child: views.when(
data: (data) { data: (data) {
final shelvesToDisplay = data return LayoutBuilder(
// .where((element) => !element.id.contains('discover')) builder: (context, constraints) {
.map((shelf) { final height = getDefaultHeight(context);
appLogger.fine('building shelf ${shelf.label}'); // final height = min(constraints.maxHeight, 500.0);
return HomeShelf( final width = height * 0.75;
title: shelf.label, return AlignedGridView.count(
shelf: shelf, crossAxisCount: constraints.maxWidth ~/ width,
); mainAxisSpacing: 12,
}).toList(); crossAxisSpacing: 12,
return RefreshIndicator( padding: EdgeInsets.only(top: 0, left: 8, right: 8),
onRefresh: () async { itemCount: data.length,
return ref.refresh(personalizedViewProvider); controller: scrollController,
itemBuilder: (context, index) {
return LibraryPageItem(
item: data[index],
);
},
);
}, },
child: ListView.separated(
itemBuilder: (context, index) => shelvesToDisplay[index],
separatorBuilder: (context, index) => Divider(
color: Theme.of(context).dividerColor.withValues(alpha: 0.1),
indent: 16,
endIndent: 16,
),
itemCount: shelvesToDisplay.length,
controller: scrollController,
),
); );
}, },
loading: () => const LibraryPageSkeleton(), loading: () => const LibraryPageSkeleton(),
@ -78,8 +117,27 @@ class LibraryPage extends HookConsumerWidget {
), ),
); );
} }
double getDefaultHeight(
BuildContext context, {
bool ignoreWidth = false,
atMin = 150.0,
perCent = 0.3,
}) {
double referenceSide;
if (ignoreWidth) {
referenceSide = MediaQuery.of(context).size.height;
} else {
referenceSide = min(
MediaQuery.of(context).size.width,
MediaQuery.of(context).size.height,
);
}
return max(atMin, referenceSide * perCent);
}
} }
//
class LibraryPageSkeleton extends StatelessWidget { class LibraryPageSkeleton extends StatelessWidget {
const LibraryPageSkeleton({super.key}); const LibraryPageSkeleton({super.key});
@ -92,3 +150,72 @@ class LibraryPageSkeleton extends StatelessWidget {
); );
} }
} }
class LibraryPageItem extends HookConsumerWidget {
const LibraryPageItem({
super.key,
required this.item,
});
final LibraryItem item;
@override
Widget build(BuildContext context, WidgetRef ref) {
final book = item.media.asBookMinified;
final metadata = book.metadata.asBookMetadataMinified;
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
BookCoverWidget(itemId: item.id),
const SizedBox(height: 3),
Text(
metadata.title ?? '',
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.bodyLarge,
),
const SizedBox(height: 3),
Text(
metadata.authorName ?? '',
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.bodySmall,
),
],
);
}
}
class BookCoverWidget extends HookConsumerWidget {
const BookCoverWidget({
super.key,
required this.itemId,
});
final String itemId;
@override
Widget build(BuildContext context, WidgetRef ref) {
final coverImage = ref.watch(coverImageProvider(itemId));
return coverImage.when(
data: (image) {
// return const BookCoverSkeleton();
if (image.isEmpty) {
return const Icon(Icons.error);
}
return Image.memory(
image,
fit: BoxFit.cover,
);
},
loading: () {
return const Center(
child: BookCoverSkeleton(),
);
},
error: (error, stack) {
return const Center(child: Icon(Icons.error));
},
);
}
}

View file

@ -13,7 +13,7 @@ class Routes {
); );
static const library = _SimpleRoute( static const library = _SimpleRoute(
pathName: 'library', pathName: 'library',
pathParamName: 'libraryId', // pathParamName: 'libraryId',
name: 'library', name: 'library',
); );
static const libraryItem = _SimpleRoute( static const libraryItem = _SimpleRoute(

View file

@ -19,6 +19,7 @@ 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';
import 'package:vaani/pages/home_page.dart'; import 'package:vaani/pages/home_page.dart';
import 'package:vaani/pages/library_page.dart';
import 'package:vaani/pages/player_page.dart'; import 'package:vaani/pages/player_page.dart';
import 'scaffold_with_nav_bar.dart'; import 'scaffold_with_nav_bar.dart';
@ -118,10 +119,15 @@ class MyAppRouter {
// Library page // Library page
StatefulShellBranch( StatefulShellBranch(
routes: <RouteBase>[ routes: <RouteBase>[
// GoRoute(
// path: Routes.libraryBrowser.localPath,
// name: Routes.libraryBrowser.name,
// pageBuilder: defaultPageBuilder(const LibraryBrowserPage()),
// ),
GoRoute( GoRoute(
path: Routes.libraryBrowser.localPath, path: Routes.library.localPath,
name: Routes.libraryBrowser.name, name: Routes.library.name,
pageBuilder: defaultPageBuilder(const LibraryBrowserPage()), pageBuilder: defaultPageBuilder(const LibraryPage()),
), ),
], ],
), ),

View file

@ -568,6 +568,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.1.3" version: "0.1.3"
flutter_staggered_grid_view:
dependency: "direct main"
description:
name: flutter_staggered_grid_view
sha256: "19e7abb550c96fbfeb546b23f3ff356ee7c59a019a651f8f102a4ba9b7349395"
url: "https://pub.dev"
source: hosted
version: "0.7.0"
flutter_svg: flutter_svg:
dependency: transitive dependency: transitive
description: description:

View file

@ -44,6 +44,7 @@ dependencies:
collection: ^1.18.0 collection: ^1.18.0
cupertino_icons: ^1.0.6 cupertino_icons: ^1.0.6
flutter_platform_widgets: ^9.0.0 flutter_platform_widgets: ^9.0.0
flutter_staggered_grid_view: ^0.7.0
device_info_plus: ^11.3.3 device_info_plus: ^11.3.3
duration_picker: ^1.2.0 duration_picker: ^1.2.0
dynamic_color: ^1.7.0 dynamic_color: ^1.7.0