diff --git a/lib/presentation/views/main_menu_view.dart b/lib/presentation/views/main_menu_view.dart index 74a7549..5ba9859 100644 --- a/lib/presentation/views/main_menu_view.dart +++ b/lib/presentation/views/main_menu_view.dart @@ -49,6 +49,13 @@ class _MainMenuViewState extends State { }); } + @override + void didChangeDependencies() { + precacheImage( + const AssetImage('assets/cabo_counter-logo_rounded.png'), context); + super.didChangeDependencies(); + } + void _updateView() { if (mounted) setState(() {}); } diff --git a/pubspec.yaml b/pubspec.yaml index a67a45f..68b8523 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.5.3+598 +version: 0.5.3+604 environment: sdk: ^3.5.4 @@ -31,6 +31,7 @@ dependencies: reorderables: ^0.4.2 collection: ^1.18.0 confetti: ^0.6.0 + flutter_cache_manager: ^3.3.0 dev_dependencies: flutter_test: