Skip to content

Commit

Permalink
bump flutter_riverpod and fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVe committed Jan 10, 2025
1 parent db6b5c6 commit 5522447
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/android/overlay/nfc/nfc_event_notifier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ final nfcEventNotifierListener = Provider<_NfcEventNotifierListener>(
(ref) => _NfcEventNotifierListener(ref));

class _NfcEventNotifierListener {
final ProviderRef _ref;
final Ref _ref;
ProviderSubscription<NfcEvent>? listener;

_NfcEventNotifierListener(this._ref);
Expand Down
2 changes: 1 addition & 1 deletion lib/android/state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ final androidClipboardProvider = Provider<AppClipboard>(
);

class _AndroidClipboard extends AppClipboard {
final ProviderRef<AppClipboard> _ref;
final Ref<AppClipboard> _ref;

const _AndroidClipboard(this._ref);

Expand Down
2 changes: 1 addition & 1 deletion lib/android/window_state_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ final androidWindowStateProvider = Provider<WindowState>(

class _WindowStateNotifier extends StateNotifier<WindowState>
with WidgetsBindingObserver {
final StateNotifierProviderRef<_WindowStateNotifier, WindowState> _ref;
final Ref<WindowState> _ref;
_WindowStateNotifier(this._ref)
: super(WindowState(focused: true, visible: true, active: true)) {
_init();
Expand Down
8 changes: 4 additions & 4 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,10 @@ packages:
dependency: "direct main"
description:
name: flutter_riverpod
sha256: "711d916456563f715bde1e139d7cfdca009f8264befab3ac9f8ded8b6ec26405"
sha256: "9532ee6db4a943a1ed8383072a2e3eeda041db5657cdf6d2acecf3c21ecbe7e1"
url: "https://pub.dev"
source: hosted
version: "2.5.3"
version: "2.6.1"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down Expand Up @@ -723,10 +723,10 @@ packages:
dependency: transitive
description:
name: riverpod
sha256: c86fedfb45dd1da98ee6493dd9374325cdf494e7d523ebfb0c387eecc5f7b5c9
sha256: "59062512288d3056b2321804332a13ffdd1bf16df70dcc8e506e411280a72959"
url: "https://pub.dev"
source: hosted
version: "2.5.3"
version: "2.6.1"
rxdart:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dependencies:
logging: ^1.3.0
collection: ^1.19.0
shared_preferences: ^2.3.5
flutter_riverpod: 2.5.3
flutter_riverpod: ^2.6.1
json_annotation: ^4.9.0
freezed_annotation: ^2.4.1
window_manager:
Expand Down

0 comments on commit 5522447

Please sign in to comment.