Small changes

This commit is contained in:
2025-07-09 23:40:35 +02:00
parent 158e687f9f
commit 33c4b773dd
2 changed files with 5 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ import 'package:cabo_counter/services/config_service.dart';
import 'package:cabo_counter/services/local_storage_service.dart'; import 'package:cabo_counter/services/local_storage_service.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart' as url; import 'package:url_launcher/url_launcher.dart';
class MainMenuView extends StatefulWidget { class MainMenuView extends StatefulWidget {
const MainMenuView({super.key}); const MainMenuView({super.key});
@@ -304,9 +304,10 @@ class _MainMenuViewState extends State<MainMenuView> {
switch (decision) { switch (decision) {
case RATING_DIALOG_YES: case RATING_DIALOG_YES:
Globals.rateMyApp.showStarRateDialog(context); if (context.mounted) Globals.rateMyApp.showStarRateDialog(context);
break;
case RATING_DIALOG_NO: case RATING_DIALOG_NO:
url.launchUrl(emailUri, mode: url.LaunchMode.externalApplication); launchUrl(emailUri, mode: LaunchMode.externalApplication);
case RATING_DIALOG_CANCEL: case RATING_DIALOG_CANCEL:
break; break;
} }

View File

@@ -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.4.0+437 version: 0.4.0+438
environment: environment:
sdk: ^3.5.4 sdk: ^3.5.4