Ensured rating dialog wont show in Beta
This commit is contained in:
@@ -40,7 +40,8 @@ class _MainMenuViewState extends State<MainMenuView> {
|
|||||||
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
||||||
await Constants.rateMyApp.init();
|
await Constants.rateMyApp.init();
|
||||||
|
|
||||||
if (Constants.rateMyApp.shouldOpenDialog) {
|
if (Constants.rateMyApp.shouldOpenDialog &&
|
||||||
|
Constants.appDevPhase != 'Beta') {
|
||||||
await Future.delayed(const Duration(milliseconds: 600));
|
await Future.delayed(const Duration(milliseconds: 600));
|
||||||
if (!mounted) return;
|
if (!mounted) return;
|
||||||
_handleFeedbackDialog(context);
|
_handleFeedbackDialog(context);
|
||||||
@@ -96,15 +97,13 @@ class _MainMenuViewState extends State<MainMenuView> {
|
|||||||
const SizedBox(height: 30), // Abstand von oben
|
const SizedBox(height: 30), // Abstand von oben
|
||||||
Center(
|
Center(
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () => _handleFeedbackDialog(
|
onTap: () => Navigator.push(
|
||||||
context) /*Navigator.push(
|
|
||||||
context,
|
context,
|
||||||
CupertinoPageRoute(
|
CupertinoPageRoute(
|
||||||
builder: (context) =>
|
builder: (context) =>
|
||||||
const CreateGameView(),
|
const CreateGameView(),
|
||||||
),
|
),
|
||||||
)*/
|
),
|
||||||
,
|
|
||||||
child: Icon(
|
child: Icon(
|
||||||
CupertinoIcons.plus,
|
CupertinoIcons.plus,
|
||||||
size: 60,
|
size: 60,
|
||||||
|
|||||||
Reference in New Issue
Block a user