Skip to content

Commit

Permalink
changed message for mobile browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
xjyribro committed Apr 17, 2024
1 parent 0e2d5e5 commit eb60a6d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
Binary file removed assets/images/landing/manuka.png
Binary file not shown.
5 changes: 1 addition & 4 deletions lib/assets.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 24 additions & 4 deletions lib/screens/main_menu.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:gomiland/constants/styles.dart';
import 'package:gomiland/controllers/audio_controller.dart';
import 'package:gomiland/screens/auth/utils.dart';
Expand Down Expand Up @@ -218,10 +219,29 @@ class _MainMenuState extends State<MainMenu> {
const GomilandLogo(),
const SpacerNormal(),
if (isWebMobile)
const Text(
'Gomiland is for desktop browsers only',
textAlign: TextAlign.center,
style: TextStyles.menuWhiteTextStyle,
TextButton(
onPressed: () async {
await Clipboard.setData(
const ClipboardData(
text: "https://github.com/xjyribro/gomiland"),
).then((_) async {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('url copied'),
),
);
});
},
child: const Padding(
padding: EdgeInsets.all(8.0),
child: Text(
'Gomiland is for desktop browsers only.\n'
'To get Android and iOS, click here:\n'
'https://github.com/xjyribro/gomiland',
textAlign: TextAlign.center,
style: TextStyles.creditsTextStyle,
),
),
)
else
..._menuButtons(),
Expand Down

0 comments on commit eb60a6d

Please sign in to comment.