From bd39abc54b6bc2464ca13f0217f3558d5007e122 Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Tue, 26 Aug 2025 16:25:15 -0400 Subject: [PATCH] chore: padding updates to course chats list (#3818) --- lib/l10n/intl_en.arb | 5 +- .../pages/space_details_content.dart | 5 +- .../course_chats/course_chats_view.dart | 51 ++++--------------- 3 files changed, 17 insertions(+), 44 deletions(-) diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index d0a1953c0..ecd0d525c 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -5240,7 +5240,8 @@ }, "activityNotFoundForCourse": "This activity was not found within the course", "courseChats": "Course Chats", - "noSessionsFound": "None found. Ready to start?", "myActivitySessions": "My Activity Sessions", - "directMessages": "Direct Messages" + "directMessages": "Direct Messages", + "whatNow": "What now?", + "chooseNextActivity": "Choose your next activity!" } diff --git a/lib/pangea/chat_settings/pages/space_details_content.dart b/lib/pangea/chat_settings/pages/space_details_content.dart index 2327dd8fa..200a36c9d 100644 --- a/lib/pangea/chat_settings/pages/space_details_content.dart +++ b/lib/pangea/chat_settings/pages/space_details_content.dart @@ -257,7 +257,10 @@ class SpaceDetailsContentState extends State { maxLines: 1, overflow: TextOverflow.ellipsis, style: TextStyle( - fontSize: isColumnMode ? 32.0 : 12.0, + fontSize: isColumnMode ? 32.0 : 16.0, + fontWeight: isColumnMode + ? FontWeight.normal + : FontWeight.bold, ), ), if (isColumnMode && courseController.course != null) diff --git a/lib/pangea/course_chats/course_chats_view.dart b/lib/pangea/course_chats/course_chats_view.dart index 93420bdb7..0248adef2 100644 --- a/lib/pangea/course_chats/course_chats_view.dart +++ b/lib/pangea/course_chats/course_chats_view.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; import 'package:matrix/matrix.dart' as sdk; import 'package:matrix/matrix.dart'; @@ -106,7 +107,7 @@ class CourseChatsView extends StatelessWidget { joinedSessions.length + discoveredGroupChats.length + discoveredSessions.length + - 7, + 6, itemBuilder: (context, i) { // courses chats title if (i == 0) { @@ -181,7 +182,7 @@ class CourseChatsView extends StatelessWidget { return Padding( padding: const EdgeInsets.only( top: 20.0, - bottom: 16.0, + bottom: 12.0, ), child: courseController.loading ? LinearProgressIndicator( @@ -256,47 +257,15 @@ class CourseChatsView extends StatelessWidget { } i--; - if (i == 0) { - return Padding( - padding: const EdgeInsets.only( - bottom: 4.0, - left: 24.0, - right: 24.0, - ), - child: Row( - spacing: 4.0, - mainAxisSize: MainAxisSize.min, - children: [ - const Icon( - Icons.event_note_outlined, - size: 14.0, - ), - Text( - L10n.of(context).myActivitySessions, - style: const TextStyle(fontSize: 12.0), - ), - ], - ), - ); - } - i--; - if (i == 0) { return joinedSessions.isEmpty && discoveredSessions.isEmpty - ? Padding( - padding: const EdgeInsets.symmetric(vertical: 12.0), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Text( - L10n.of(context).noSessionsFound, - style: const TextStyle( - fontSize: 12.0, - ), - ), - const Icon(Icons.map_outlined, size: 24.0), - ], - ), + ? ListTile( + leading: const Icon(Icons.map_outlined), + title: Text(L10n.of(context).whatNow), + subtitle: Text(L10n.of(context).chooseNextActivity), + trailing: const Icon(Icons.arrow_forward), + onTap: () => + context.go("/rooms/spaces/${room.id}/details"), ) : const SizedBox(); }