diff --git a/lib/utility/local_storage_service.dart b/lib/utility/local_storage_service.dart index ac00835..661b139 100644 --- a/lib/utility/local_storage_service.dart +++ b/lib/utility/local_storage_service.dart @@ -46,14 +46,13 @@ class LocalStorageService { print('Es existiert bereits eine Datei mit Spieldaten'); final jsonString = await file.readAsString(); if (jsonString.isNotEmpty) { - print('Die Datei ist nicht leer'); + print('Die gefundene Datei ist nicht leer'); final jsonList = json.decode(jsonString) as List; - print('JSON: $jsonList'); Globals.gameList = jsonList .map((jsonItem) => GameSession.fromJson(jsonItem as Map)) .toList() - .cast(); // Explicit cast to List + .cast(); print('Die Daten wurden erfolgreich geladen'); } else { print('Die Datei ist leer'); diff --git a/pubspec.yaml b/pubspec.yaml index f298aa6..a20057a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: cabo_counter description: "Mobile app for the card game Cabo" publish_to: 'none' -version: 0.1.5+108 +version: 0.1.5+110 environment: sdk: ^3.5.4