Improve error handling and parsing a little

This commit is contained in:
2025-02-22 16:12:52 +01:00
parent 406be305e2
commit 0a40e5bbcf
5 changed files with 31 additions and 72 deletions

View File

@@ -106,7 +106,15 @@ class _GameCardState extends State<GameCard>
_controller.repeat();
final updatedGame = widget.game;
await updatedGame.updateActualVersion();
try {
await updatedGame.updateActualVersion();
} catch (e) {
if (mounted) {
ScaffoldMessenger.of(
context,
).showSnackBar(SnackBar(content: Text(e.toString())));
}
}
widget.onGameUpdated(updatedGame);
_controller.stop();