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> updatePoints() {
|
||||||
List<int> bonusPlayers = [];
|
List<int> bonusPlayers = [];
|
||||||
_sumPoints();
|
_sumPoints();
|
||||||
bool limitExceeded = false;
|
|
||||||
|
|
||||||
if (isPointsLimitEnabled) {
|
if (isPointsLimitEnabled) {
|
||||||
bonusPlayers = _checkHundredPointsReached();
|
bonusPlayers = _checkHundredPointsReached();
|
||||||
|
bool limitExceeded = false;
|
||||||
|
|
||||||
for (int i = 0; i < playerScores.length; i++) {
|
for (int i = 0; i < playerScores.length; i++) {
|
||||||
if (playerScores[i] > pointLimit) {
|
if (playerScores[i] > pointLimit) {
|
||||||
|
|||||||
@@ -38,6 +38,8 @@ class _MainMenuViewState extends State<MainMenuView> {
|
|||||||
gameManager.addListener(_updateView);
|
gameManager.addListener(_updateView);
|
||||||
|
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
||||||
|
precacheImage(
|
||||||
|
const AssetImage('assets/cabo_counter-logo_rounded.png'), context);
|
||||||
await Constants.rateMyApp.init();
|
await Constants.rateMyApp.init();
|
||||||
|
|
||||||
if (Constants.rateMyApp.shouldOpenDialog &&
|
if (Constants.rateMyApp.shouldOpenDialog &&
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: cabo_counter
|
|||||||
description: "Mobile app for the card game Cabo"
|
description: "Mobile app for the card game Cabo"
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 0.5.3+598
|
version: 0.5.4+605
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.5.4
|
sdk: ^3.5.4
|
||||||
|
|||||||
Reference in New Issue
Block a user