mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
dart fix --apply
This commit is contained in:
committed by
Roland Geider
parent
9591d7cd11
commit
555f57d2de
@@ -248,7 +248,7 @@ class FlatpakMeta {
|
||||
throw Exception(
|
||||
'Metadata must include Github repository info if fetching releases from Github.');
|
||||
}
|
||||
return await _githubReleases!.getLatestReleaseAssets();
|
||||
return _githubReleases!.getLatestReleaseAssets();
|
||||
} else {
|
||||
if (_localReleases == null) {
|
||||
throw Exception('Metadata must include releases if not fetching releases from Github.');
|
||||
|
||||
@@ -341,7 +341,7 @@ class NutritionPlansProvider with ChangeNotifier {
|
||||
/// Loads the available ingredients from the local cache
|
||||
Future<void> fetchIngredientsFromCache() async {
|
||||
final ingredientDb = await database.select(database.ingredients).get();
|
||||
log("Read ${ingredientDb.length} ingredients from db cache");
|
||||
log('Read ${ingredientDb.length} ingredients from db cache');
|
||||
if (ingredientDb.isNotEmpty) {
|
||||
ingredients = ingredientDb.map((e) => Ingredient.fromJson(jsonDecode(e.data))).toList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user