chore: reverse change to cefr level display in saved activities

This commit is contained in:
ggurdin 2026-01-22 16:38:32 -05:00
parent d8418091f1
commit 772ccc614f
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:collection/collection.dart';
import 'package:go_router/go_router.dart';
import 'package:matrix/matrix.dart';
@ -82,7 +83,11 @@ class AnalyticsActivityItem extends StatelessWidget {
@override
Widget build(BuildContext context) {
final objective = room.activityPlan?.learningObjective ?? '';
final cefrLevel = room.activityPlan?.req.cefrLevel;
final cefrLevel = room.activitySummary?.summary?.participants
.firstWhereOrNull(
(p) => p.participantId == room.client.userID,
)
?.cefrLevel;
final theme = Theme.of(context);
return Padding(
@ -122,7 +127,7 @@ class AnalyticsActivityItem extends StatelessWidget {
vertical: 4,
),
child: Text(
cefrLevel.string,
cefrLevel.toUpperCase(),
style: const TextStyle(fontSize: 14.0),
),
)