Merge pull request #146 from flixcoo/enhance/137-cache-aboutview-image

Cache aboutview image
This commit is contained in:
2025-07-24 23:25:20 +02:00
committed by GitHub
3 changed files with 4 additions and 2 deletions

View File

@@ -247,10 +247,10 @@ class GameSession extends ChangeNotifier {
List<int> updatePoints() {
List<int> bonusPlayers = [];
_sumPoints();
bool limitExceeded = false;
if (isPointsLimitEnabled) {
bonusPlayers = _checkHundredPointsReached();
bool limitExceeded = false;
for (int i = 0; i < playerScores.length; i++) {
if (playerScores[i] > pointLimit) {

View File

@@ -38,6 +38,8 @@ class _MainMenuViewState extends State<MainMenuView> {
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 &&

View File

@@ -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.4+605
environment:
sdk: ^3.5.4