Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instagram to our card in the dashboard page #879

Merged
merged 11 commits into from
Nov 9, 2023
1 change: 1 addition & 0 deletions lib/core/constants/urls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Urls {
static const String clubWebsite = "https://clubapplets.ca/";
static const String clubGithub = "https://github.com/ApplETS";
static const String clubFacebook = "https://facebook.com/ClubApplETS";
static const String clubInstagram = "https://www.instagram.com/clubapplets";
static const String clubTwitter = "https://twitter.com/ClubApplETS";
static const String clubEmail = "mailto:[email protected]";
XavierPaquet-Rapold marked this conversation as resolved.
Show resolved Hide resolved
static const String clubYoutube =
Expand Down
10 changes: 10 additions & 0 deletions lib/ui/views/dashboard_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,16 @@ class _DashboardViewState extends State<DashboardView>
color: Colors.white,
),
),
IconButton(
onPressed: () {
_analyticsService.logEvent(tag, "Instagram clicked");
Utils.launchURL(Urls.clubInstagram, AppIntl.of(context));
},
icon: const FaIcon(
FontAwesomeIcons.instagram,
color: Colors.white,
),
),
IconButton(
onPressed: () {
_analyticsService.logEvent(tag, "Github clicked");
Expand Down
Loading