Skip to content

Commit

Permalink
add instagram to our card in the dashboard page
Browse files Browse the repository at this point in the history
  • Loading branch information
AmineMihoubi committed Oct 27, 2023
1 parent b31ff67 commit 18b8fff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
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]";
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

0 comments on commit 18b8fff

Please sign in to comment.