diff --git a/lib/presentation/views/main_menu_view.dart b/lib/presentation/views/main_menu_view.dart index 5ba9859..0ad5cfa 100644 --- a/lib/presentation/views/main_menu_view.dart +++ b/lib/presentation/views/main_menu_view.dart @@ -38,6 +38,8 @@ class _MainMenuViewState extends State { gameManager.addListener(_updateView); WidgetsBinding.instance.addPostFrameCallback((_) async { + precacheImage( + const AssetImage('assets/cabo_counter-logo_rounded.png'), context); await Constants.rateMyApp.init(); if (Constants.rateMyApp.shouldOpenDialog && @@ -49,13 +51,6 @@ 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 961e6cb..abca6e8 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.4+604 +version: 0.5.4+605 environment: sdk: ^3.5.4 @@ -31,7 +31,6 @@ dependencies: reorderables: ^0.4.2 collection: ^1.18.0 confetti: ^0.6.0 - flutter_cache_manager: ^3.3.0 dev_dependencies: flutter_test: