diff --git a/lib/utils/constants.dart b/lib/utils/constants.dart index 79f2db8e..0db991e7 100644 --- a/lib/utils/constants.dart +++ b/lib/utils/constants.dart @@ -56,6 +56,8 @@ const String verificationCollectionID = "64a7c0100eabfe8d3844"; // Github Constants const String githubRepoUrl = "https://github.com/AOSSIE-Org/Resonate"; +const String discordRepoUrl = "https://discord.com/invite/6mFZ2S846n"; +const String xPageUrl = "https://x.com/aossie_org"; //Authentication Error types const String userInvalidCredentials = 'user_invalid_credentials'; diff --git a/lib/views/screens/contribute_screen.dart b/lib/views/screens/contribute_screen.dart index a0d4a28e..e6fe170c 100644 --- a/lib/views/screens/contribute_screen.dart +++ b/lib/views/screens/contribute_screen.dart @@ -1,6 +1,7 @@ import 'dart:developer'; import 'package:flutter/material.dart'; +import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:resonate/utils/ui_sizes.dart'; import 'package:url_launcher/url_launcher.dart'; @@ -85,21 +86,34 @@ class ContributeScreen extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.spaceAround, children: [ IconButton( - onPressed: () {}, + onPressed: () { + Uri url = Uri.parse(xPageUrl); + try { + launchUrl(url); + } catch (e) { + log("Error launching URL: ${e.toString()}"); + } + }, icon: Icon( - Icons.telegram_rounded, + FontAwesomeIcons.xTwitter, size: UiSizes.size_40, ), - tooltip: "Join telegram channel", + tooltip: "Follow us on X", ), IconButton( - onPressed: () {}, + onPressed: () { + Uri url = Uri.parse(discordRepoUrl); + try { + launchUrl(url); + } catch (e) { + log("Error launching URL: ${e.toString()}"); + } + }, icon: Icon( Icons.discord, size: UiSizes.size_40, ), tooltip: "Join discord server", - ) ], ), @@ -120,4 +134,4 @@ class ContributeScreen extends StatelessWidget { ), ); } -} \ No newline at end of file +}