provider mounted hardenings

This commit is contained in:
Fabian Freund
2025-10-02 13:34:47 +02:00
parent 550e1dd119
commit ae49d0f937
32 changed files with 197 additions and 146 deletions
+4 -4
View File
@@ -5,11 +5,11 @@ import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'providers.g.dart';
@Riverpod(keepAlive: true)
Future<PackageInfo> packageInfo(Ref ref) {
return PackageInfo.fromPlatform();
Future<PackageInfo> packageInfo(Ref ref) async {
return await PackageInfo.fromPlatform();
}
@Riverpod()
Future<String> geckoVersion(Ref ref) {
return GeckoBrowserService().getGeckoVersion();
Future<String> geckoVersion(Ref ref) async {
return await GeckoBrowserService().getGeckoVersion();
}