Skip to content

Commit

Permalink
Merge pull request #2101 from AntonyLeons/main
Browse files Browse the repository at this point in the history
fix: Github link in app info
  • Loading branch information
holzeis committed Feb 27, 2024
2 parents d1f4a89 + a575eb8 commit 8943244
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions mobile/lib/common/settings/app_info_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -177,22 +177,23 @@ class _AppInfoScreenState extends State<AppInfoScreen> {
),
IconButton(
icon: const Icon(FontAwesomeIcons.github, size: 22),
onPressed: () async {
await openTelegram(context);
},
),
IconButton(
icon: const Icon(FontAwesomeIcons.telegram, size: 22),
onPressed: () async {
final messenger = ScaffoldMessenger.of(context);
final httpsUri = Uri(scheme: "https", host: "t.me", path: "get10101");
final httpsUri =
Uri(scheme: "https", host: "github.com", path: "get10101");
if (await canLaunchUrl(httpsUri)) {
await launchUrl(httpsUri, mode: LaunchMode.externalApplication);
} else {
showSnackBar(messenger, "Failed to open link");
}
},
),
IconButton(
icon: const Icon(FontAwesomeIcons.telegram, size: 22),
onPressed: () async {
await openTelegram(context);
},
),
IconButton(
icon: const Icon(FontAwesomeIcons.earthEurope, size: 22),
onPressed: () async {
Expand Down

0 comments on commit 8943244

Please sign in to comment.