chore: padding updates to course chats list (#3818)

pull/2245/head
ggurdin 3 months ago committed by GitHub
parent 44d800762d
commit bd39abc54b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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!"
}

@ -257,7 +257,10 @@ class SpaceDetailsContentState extends State<SpaceDetailsContent> {
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)

@ -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();
}

Loading…
Cancel
Save