Skip to content

Commit 64a19c9

Browse files
committed
remove warning on web version
1 parent c8a114b commit 64a19c9

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

lib/widgets/collection_page.dart

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -64,25 +64,7 @@ class CollectionPageState extends State<CollectionPage> {
6464
showBadge: false,
6565
);
6666

67-
if (kIsWeb) {
68-
showDialog<String>(
69-
context: context,
70-
builder: (BuildContext context) => AlertDialog(
71-
title: const Text('Warning'),
72-
content: const Text(
73-
'You are using the web version of Enthusiast Tea Timer. All data is saved locally and will be lost if you clear your browsing data.',
74-
),
75-
actions: <Widget>[
76-
TextButton(
77-
onPressed: () async {
78-
Navigator.pop(context, 'OK');
79-
},
80-
child: const Text('OK'),
81-
),
82-
],
83-
),
84-
);
85-
} else if (Platform.isAndroid) {
67+
if (!kIsWeb && Platform.isAndroid) {
8668
FlutterBackground.hasPermissions.then((hasPermissions) {
8769
if (!hasPermissions && mounted) {
8870
showDialog<String>(

0 commit comments

Comments
 (0)