From 5601b2a278ec02c9917a948635822b3a81db249d Mon Sep 17 00:00:00 2001 From: Moumy Ndiaye <112096535+NMoumy@users.noreply.github.com> Date: Thu, 30 Apr 2026 01:16:03 -0400 Subject: [PATCH 1/5] init commit --- pubspec.lock | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index d9a520100..74087d23a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -141,10 +141,10 @@ packages: dependency: transitive description: name: characters - sha256: faf38497bda5ead2a8c7615f4f7939df04333478bf32e4173fcb06d428b5716b + sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 url: "https://pub.dev" source: hosted - version: "1.4.1" + version: "1.4.0" checked_yaml: dependency: transitive description: @@ -769,18 +769,18 @@ packages: dependency: transitive description: name: matcher - sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861 + sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 url: "https://pub.dev" source: hosted - version: "0.12.19" + version: "0.12.17" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "9c337007e82b1889149c82ed242ed1cb24a66044e30979c44912381e9be4c48b" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.13.0" + version: "0.11.1" meta: dependency: transitive description: @@ -1310,10 +1310,10 @@ packages: dependency: transitive description: name: test_api - sha256: "8161c84903fd860b26bfdefb7963b3f0b68fee7adea0f59ef805ecca346f0c7a" + sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55 url: "https://pub.dev" source: hosted - version: "0.7.10" + version: "0.7.7" timeago: dependency: "direct main" description: From 3d171d885fd85c20025d3083c7e49be80c5542c7 Mon Sep 17 00:00:00 2001 From: Moumy Ndiaye <112096535+NMoumy@users.noreply.github.com> Date: Mon, 4 May 2026 20:56:49 -0400 Subject: [PATCH 2/5] grade in a single row --- lib/ui/dashboard/widgets/grades_card.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ui/dashboard/widgets/grades_card.dart b/lib/ui/dashboard/widgets/grades_card.dart index b2fa887f0..c47e99fe2 100644 --- a/lib/ui/dashboard/widgets/grades_card.dart +++ b/lib/ui/dashboard/widgets/grades_card.dart @@ -52,9 +52,11 @@ class GradesCard extends StatelessWidget { static Widget _buildGradesButton(List courses, BuildContext context, {bool loading = false}) => Skeletonizer( enabled: loading, - child: Container( + child: SingleChildScrollView( + scrollDirection: Axis.horizontal, padding: const EdgeInsets.fromLTRB(17, 10, 15, 10), - child: Wrap( + child: Row( + spacing: 10, children: courses.map((course) => GradeButton(course, color: context.theme.appColors.backgroundAlt)).toList(), ), ), From 2e739f00d0c43db148eeda54fb7145dfc00956ba Mon Sep 17 00:00:00 2001 From: NMoumy <112096535+NMoumy@users.noreply.github.com> Date: Tue, 5 May 2026 01:09:35 +0000 Subject: [PATCH 3/5] [BOT] Applying version. --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 00fee83df..ae65e3e56 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,7 +5,7 @@ description: The 5th 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: 5.0.1 +version: 5.1.0 environment: sdk: '>=3.9.0 <4.0.0' From 226ef2e7e8c94043d0e268594e004c4e982f9a50 Mon Sep 17 00:00:00 2001 From: Moumy Ndiaye <112096535+NMoumy@users.noreply.github.com> Date: Tue, 12 May 2026 16:54:15 -0400 Subject: [PATCH 4/5] Adding a parameter for the direction --- lib/ui/dashboard/widgets/grades_card.dart | 24 ++++++++++------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/lib/ui/dashboard/widgets/grades_card.dart b/lib/ui/dashboard/widgets/grades_card.dart index c47e99fe2..c31326a7a 100644 --- a/lib/ui/dashboard/widgets/grades_card.dart +++ b/lib/ui/dashboard/widgets/grades_card.dart @@ -37,25 +37,21 @@ class GradesCard extends StatelessWidget { return TitledCard( title: AppIntl.of(context)!.grades_title, - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisSize: MainAxisSize.min, - children: [ - if (courses.isEmpty && !loading) - _buildNoGradesContent(context) - else - _buildGradesButton(courses, context, loading: loading), - ], - ), + child: (courses.isEmpty && !loading) ? + _buildNoGradesContent(context) : + _buildGradesButton(courses, context, loading: loading), ); } - static Widget _buildGradesButton(List courses, BuildContext context, {bool loading = false}) => Skeletonizer( - enabled: loading, + static Widget _buildGradesButton(List courses, BuildContext context, { + bool loading = false, Axis direction = Axis.horizontal + }) => Skeletonizer( + enabled: loading, child: SingleChildScrollView( - scrollDirection: Axis.horizontal, + scrollDirection: direction, padding: const EdgeInsets.fromLTRB(17, 10, 15, 10), - child: Row( + child: Flex( + direction: direction, spacing: 10, children: courses.map((course) => GradeButton(course, color: context.theme.appColors.backgroundAlt)).toList(), ), From c085bf18edeef1ed939c8a4b668e13ea032bb196 Mon Sep 17 00:00:00 2001 From: Moumy Ndiaye <112096535+NMoumy@users.noreply.github.com> Date: Tue, 12 May 2026 16:55:49 -0400 Subject: [PATCH 5/5] Adding a parameter for the direction --- lib/ui/dashboard/widgets/grades_card.dart | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/ui/dashboard/widgets/grades_card.dart b/lib/ui/dashboard/widgets/grades_card.dart index c31326a7a..b09089824 100644 --- a/lib/ui/dashboard/widgets/grades_card.dart +++ b/lib/ui/dashboard/widgets/grades_card.dart @@ -37,16 +37,19 @@ class GradesCard extends StatelessWidget { return TitledCard( title: AppIntl.of(context)!.grades_title, - child: (courses.isEmpty && !loading) ? - _buildNoGradesContent(context) : - _buildGradesButton(courses, context, loading: loading), + child: (courses.isEmpty && !loading) + ? _buildNoGradesContent(context) + : _buildGradesButton(courses, context, loading: loading), ); } - static Widget _buildGradesButton(List courses, BuildContext context, { - bool loading = false, Axis direction = Axis.horizontal + static Widget _buildGradesButton( + List courses, + BuildContext context, { + bool loading = false, + Axis direction = Axis.horizontal, }) => Skeletonizer( - enabled: loading, + enabled: loading, child: SingleChildScrollView( scrollDirection: direction, padding: const EdgeInsets.fromLTRB(17, 10, 15, 10),