diff --git a/samples/crossword/lib/providers.dart b/samples/crossword/lib/providers.dart index e43e76d..62e75c6 100644 --- a/samples/crossword/lib/providers.dart +++ b/samples/crossword/lib/providers.dart @@ -7,6 +7,7 @@ import 'dart:convert'; import 'package:built_collection/built_collection.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; +import 'package:riverpod/riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import 'isolates.dart'; @@ -18,7 +19,7 @@ const backgroundWorkerCount = 4; /// A provider for the wordlist to use when generating the crossword. @riverpod -Future> wordList(WordListRef ref) async { +Future> wordList(Ref ref) async { // This codebase requires that all words consist of lowercase characters // in the range 'a'-'z'. Words containing uppercase letters will be // lowercased, and words containing runes outside this range will @@ -65,7 +66,7 @@ class Size extends _$Size { } @riverpod -Stream workQueue(WorkQueueRef ref) async* { +Stream workQueue(Ref ref) async* { final size = ref.watch(sizeProvider); final wordListAsync = ref.watch(wordListProvider); final emptyCrossword = diff --git a/samples/crossword/lib/providers.g.dart b/samples/crossword/lib/providers.g.dart index 19c3b8d..18b1cd6 100644 --- a/samples/crossword/lib/providers.g.dart +++ b/samples/crossword/lib/providers.g.dart @@ -6,7 +6,7 @@ part of 'providers.dart'; // RiverpodGenerator // ************************************************************************** -String _$wordListHash() => r'8e3e9cd4555ba4baa045ccddd8dd45a25cfb6653'; +String _$wordListHash() => r'07003444d7241448561b638500001e31610b4717'; /// A provider for the wordlist to use when generating the crossword. /// @@ -21,8 +21,10 @@ final wordListProvider = AutoDisposeFutureProvider>.internal( allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef WordListRef = AutoDisposeFutureProviderRef>; -String _$workQueueHash() => r'f7af7a45cf9151794c25ebfc87233f6275898214'; +String _$workQueueHash() => r'297192935b85a20243519048088822c6ff30dbac'; /// See also [workQueue]. @ProviderFor(workQueue) @@ -35,6 +37,8 @@ final workQueueProvider = AutoDisposeStreamProvider.internal( allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef WorkQueueRef = AutoDisposeStreamProviderRef; String _$sizeHash() => r'e551985965bf4119e8d90c0e8aa4f4d68a555b73'; @@ -68,4 +72,4 @@ final puzzleProvider = typedef _$Puzzle = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// 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 diff --git a/samples/crossword/pubspec.yaml b/samples/crossword/pubspec.yaml index b9fb377..3a39075 100644 --- a/samples/crossword/pubspec.yaml +++ b/samples/crossword/pubspec.yaml @@ -1,6 +1,6 @@ name: crossword description: A crossword game built with Flutter. -publish_to: 'none' +publish_to: none version: 0.1.0 environment: @@ -12,21 +12,21 @@ dependencies: characters: ^1.3.0 flutter: sdk: flutter - flutter_riverpod: ^2.5.1 + flutter_riverpod: ^2.6.1 intl: ^0.19.0 - riverpod: ^2.5.1 - riverpod_annotation: ^2.3.5 + riverpod: ^2.6.1 + riverpod_annotation: ^2.6.1 two_dimensional_scrollables: ^0.2.1 dev_dependencies: flutter_test: sdk: flutter flutter_lints: ^5.0.0 - build_runner: ^2.4.9 + build_runner: ^2.4.10 built_value_generator: ^8.9.2 - custom_lint: ^0.6.4 - riverpod_generator: ^2.4.0 - riverpod_lint: ^2.3.10 + custom_lint: ^0.6.8 + riverpod_generator: ^2.6.1 + riverpod_lint: ^2.6.1 flutter: uses-material-design: true