diff --git a/lib/core/constants/urls.dart b/lib/core/constants/urls.dart index 88aefc776..d8f47854d 100644 --- a/lib/core/constants/urls.dart +++ b/lib/core/constants/urls.dart @@ -4,8 +4,9 @@ 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:info@clubapplets.ca"; + static const String clubEmail = "mailto:ApplETS@etsmtl.ca"; static const String clubYoutube = "https://youtube.com/channel/UCiSzzfW1bVbE_0KcEZO52ew"; static const String clubDiscord = "https://discord.gg/adMkWptn6Y"; diff --git a/lib/ui/views/dashboard_view.dart b/lib/ui/views/dashboard_view.dart index 50eb4b9ec..6e36d4229 100644 --- a/lib/ui/views/dashboard_view.dart +++ b/lib/ui/views/dashboard_view.dart @@ -165,6 +165,17 @@ class _DashboardViewState extends State 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"); diff --git a/pubspec.yaml b/pubspec.yaml index 05443809e..fa863d1f1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,7 +5,7 @@ description: The 4th generation of ÉTSMobile, the main gateway between the Éco # pub.dev using `pub publish`. This is preferred for private packages. publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 4.28.4+1 +version: 4.29.0+1 environment: sdk: ">=2.10.0 <3.0.0" diff --git a/test/ui/views/dashboard_view_test.dart b/test/ui/views/dashboard_view_test.dart index 775d70128..211b4f834 100644 --- a/test/ui/views/dashboard_view_test.dart +++ b/test/ui/views/dashboard_view_test.dart @@ -316,7 +316,7 @@ void main() { // Find aboutUs card Link Buttons final aboutUsLinkButtons = find.byType(IconButton); - expect(aboutUsLinkButtons, findsNWidgets(5)); + expect(aboutUsLinkButtons, findsNWidgets(6)); }); testWidgets("Has card schedule displayed today's events properly", diff --git a/test/ui/views/goldenFiles/dashboardView_appletsCard_1.png b/test/ui/views/goldenFiles/dashboardView_appletsCard_1.png index 947c00ec0..f70551820 100644 Binary files a/test/ui/views/goldenFiles/dashboardView_appletsCard_1.png and b/test/ui/views/goldenFiles/dashboardView_appletsCard_1.png differ