chore: reverse change to cefr level display in saved activities
This commit is contained in:
parent
d8418091f1
commit
772ccc614f
1 changed files with 7 additions and 2 deletions
|
|
@ -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),
|
||||
),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue