We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c546f9c commit 687f466Copy full SHA for 687f466
lib/providers/package_info.dart
@@ -5,6 +5,6 @@ import 'package:riverpod_annotation/riverpod_annotation.dart';
5
part 'package_info.g.dart';
6
7
@Riverpod(keepAlive: true)
8
-Future<PackageInfo> packageInfo(Ref ref) async {
+Future<PackageInfo> packageInfo(Ref ref) {
9
return PackageInfo.fromPlatform();
10
}
lib/providers/prefs.dart
@@ -5,6 +5,6 @@ import 'package:shared_preferences/shared_preferences.dart';
part 'prefs.g.dart';
-Future<SharedPreferencesWithCache> sharedPrefs(Ref ref) async {
+Future<SharedPreferencesWithCache> sharedPrefs(Ref ref) {
return SharedPreferencesWithCache.create(cacheOptions: const SharedPreferencesWithCacheOptions());
0 commit comments