Merge pull request #146 from flixcoo/enhance/137-cache-aboutview-image
Cache aboutview image
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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 &&
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user