Adds real-time connectivity monitoring and visual feedback across the app. Offline icon appears in all app bars when disconnected, cached content shows download badges, and access control prevents browsing servers or opening uncached content without internet connection. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
118 lines
4 KiB
Dart
118 lines
4 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'connectivity_provider.dart';
|
|
|
|
// **************************************************************************
|
|
// RiverpodGenerator
|
|
// **************************************************************************
|
|
|
|
String _$connectivityServiceHash() =>
|
|
r'2514faa3d7f3227d473e300af7d0188339855ef3';
|
|
|
|
/// Provider for ConnectivityService singleton
|
|
///
|
|
/// Copied from [connectivityService].
|
|
@ProviderFor(connectivityService)
|
|
final connectivityServiceProvider =
|
|
AutoDisposeProvider<ConnectivityService>.internal(
|
|
connectivityService,
|
|
name: r'connectivityServiceProvider',
|
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
|
? null
|
|
: _$connectivityServiceHash,
|
|
dependencies: null,
|
|
allTransitiveDependencies: null,
|
|
);
|
|
|
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
|
// ignore: unused_element
|
|
typedef ConnectivityServiceRef = AutoDisposeProviderRef<ConnectivityService>;
|
|
String _$connectivityStatusHash() =>
|
|
r'61a85b2a1d29254778bc6d9939b0f890986a778b';
|
|
|
|
/// Stream provider for connectivity status
|
|
///
|
|
/// Emits true when online, false when offline.
|
|
/// Automatically updates all watching widgets when connectivity changes.
|
|
///
|
|
/// Copied from [connectivityStatus].
|
|
@ProviderFor(connectivityStatus)
|
|
final connectivityStatusProvider = AutoDisposeStreamProvider<bool>.internal(
|
|
connectivityStatus,
|
|
name: r'connectivityStatusProvider',
|
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
|
? null
|
|
: _$connectivityStatusHash,
|
|
dependencies: null,
|
|
allTransitiveDependencies: null,
|
|
);
|
|
|
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
|
// ignore: unused_element
|
|
typedef ConnectivityStatusRef = AutoDisposeStreamProviderRef<bool>;
|
|
String _$epubDownloadServiceHash() =>
|
|
r'de7efa6bfecbc87177e8d517a143ce77f07d8195';
|
|
|
|
/// Provider for EpubDownloadService singleton
|
|
///
|
|
/// Copied from [epubDownloadService].
|
|
@ProviderFor(epubDownloadService)
|
|
final epubDownloadServiceProvider =
|
|
AutoDisposeProvider<EpubDownloadService>.internal(
|
|
epubDownloadService,
|
|
name: r'epubDownloadServiceProvider',
|
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
|
? null
|
|
: _$epubDownloadServiceHash,
|
|
dependencies: null,
|
|
allTransitiveDependencies: null,
|
|
);
|
|
|
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
|
// ignore: unused_element
|
|
typedef EpubDownloadServiceRef = AutoDisposeProviderRef<EpubDownloadService>;
|
|
String _$offlineContentCheckerHash() =>
|
|
r'ada0e245f7bbd7ddce8e8706733115c054ed0db9';
|
|
|
|
/// Provider for OfflineContentChecker singleton
|
|
///
|
|
/// Copied from [offlineContentChecker].
|
|
@ProviderFor(offlineContentChecker)
|
|
final offlineContentCheckerProvider =
|
|
AutoDisposeProvider<OfflineContentChecker>.internal(
|
|
offlineContentChecker,
|
|
name: r'offlineContentCheckerProvider',
|
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
|
? null
|
|
: _$offlineContentCheckerHash,
|
|
dependencies: null,
|
|
allTransitiveDependencies: null,
|
|
);
|
|
|
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
|
// ignore: unused_element
|
|
typedef OfflineContentCheckerRef
|
|
= AutoDisposeProviderRef<OfflineContentChecker>;
|
|
String _$connectivityStateHash() => r'8622fa7fd3185aa1c6bf74b61fbad5d5f3b50e8a';
|
|
|
|
/// Provider for current connectivity state
|
|
///
|
|
/// This provider caches the current connectivity status and updates
|
|
/// automatically when the status changes.
|
|
///
|
|
/// Copied from [ConnectivityState].
|
|
@ProviderFor(ConnectivityState)
|
|
final connectivityStateProvider =
|
|
AutoDisposeAsyncNotifierProvider<ConnectivityState, bool>.internal(
|
|
ConnectivityState.new,
|
|
name: r'connectivityStateProvider',
|
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
|
? null
|
|
: _$connectivityStateHash,
|
|
dependencies: null,
|
|
allTransitiveDependencies: null,
|
|
);
|
|
|
|
typedef _$ConnectivityState = AutoDisposeAsyncNotifier<bool>;
|
|
// 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
|