Skip to content

Commit

Permalink
✨ Hide Install Mail in iOS Prompt on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
strifel committed Feb 19, 2021
1 parent 0559c24 commit 56bb4a4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/components/user.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@

import 'dart:io' show Platform;

import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:url_launcher/url_launcher.dart';
Expand Down Expand Up @@ -68,15 +71,17 @@ class UserMenu extends StatelessWidget {
value: "webmail",
child: Text("Webmail"),
),
PopupMenuItem(
value: "mailconfig",
child: Text("Mail in iOS/MacOS installieren"),
),
PopupMenuItem(
value: "logout",
child: Text("Abmelden"),
)
];
if (kIsWeb || Platform.isIOS) {
items.insert(2, PopupMenuItem(
value: "mailconfig",
child: Text("Mail in iOS/MacOS installieren"),
));
}
String pdf = context.findAncestorWidgetOfExactType<User>().timeTable.currentData.pdf;
if (pdf != null) {
items.insert(0, PopupMenuItem(
Expand Down

0 comments on commit 56bb4a4

Please sign in to comment.