mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-20 23:22:07 +00:00
- Added new localization strings for total, mean per title, completion rate, watching time, reading time, average chapters per title, read percentage, and entries in multiple languages. - Enhanced the History model to include readingTimeSeconds. - Updated AnimeStreamController and ReaderController to track reading time and save it to history. - Implemented reading time tracking in Anime and Novel reader views. - Introduced statistics calculations for total reading time across histories. - Updated statistics screen to display total reading time and average reading time per title.
85 lines
2.2 KiB
Dart
85 lines
2.2 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'statistics_provider.dart';
|
|
|
|
// **************************************************************************
|
|
// RiverpodGenerator
|
|
// **************************************************************************
|
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// ignore_for_file: type=lint, type=warning
|
|
|
|
@ProviderFor(getStatistics)
|
|
final getStatisticsProvider = GetStatisticsFamily._();
|
|
|
|
final class GetStatisticsProvider
|
|
extends
|
|
$FunctionalProvider<
|
|
AsyncValue<StatisticsData>,
|
|
StatisticsData,
|
|
FutureOr<StatisticsData>
|
|
>
|
|
with $FutureModifier<StatisticsData>, $FutureProvider<StatisticsData> {
|
|
GetStatisticsProvider._({
|
|
required GetStatisticsFamily super.from,
|
|
required ItemType super.argument,
|
|
}) : super(
|
|
retry: null,
|
|
name: r'getStatisticsProvider',
|
|
isAutoDispose: true,
|
|
dependencies: null,
|
|
$allTransitiveDependencies: null,
|
|
);
|
|
|
|
@override
|
|
String debugGetCreateSourceHash() => _$getStatisticsHash();
|
|
|
|
@override
|
|
String toString() {
|
|
return r'getStatisticsProvider'
|
|
''
|
|
'($argument)';
|
|
}
|
|
|
|
@$internal
|
|
@override
|
|
$FutureProviderElement<StatisticsData> $createElement(
|
|
$ProviderPointer pointer,
|
|
) => $FutureProviderElement(pointer);
|
|
|
|
@override
|
|
FutureOr<StatisticsData> create(Ref ref) {
|
|
final argument = this.argument as ItemType;
|
|
return getStatistics(ref, itemType: argument);
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return other is GetStatisticsProvider && other.argument == argument;
|
|
}
|
|
|
|
@override
|
|
int get hashCode {
|
|
return argument.hashCode;
|
|
}
|
|
}
|
|
|
|
String _$getStatisticsHash() => r'6d6501044b20213c3c0af1bc05671f56412f3d3b';
|
|
|
|
final class GetStatisticsFamily extends $Family
|
|
with $FunctionalFamilyOverride<FutureOr<StatisticsData>, ItemType> {
|
|
GetStatisticsFamily._()
|
|
: super(
|
|
retry: null,
|
|
name: r'getStatisticsProvider',
|
|
dependencies: null,
|
|
$allTransitiveDependencies: null,
|
|
isAutoDispose: true,
|
|
);
|
|
|
|
GetStatisticsProvider call({required ItemType itemType}) =>
|
|
GetStatisticsProvider._(argument: itemType, from: this);
|
|
|
|
@override
|
|
String toString() => r'getStatisticsProvider';
|
|
}
|