Skip to content

Commit

Permalink
Exam card string error (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisDuarte1 authored Oct 2, 2023
2 parents c725cc2 + 1295656 commit c1cf436
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uni/lib/view/home/widgets/exam_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ class ExamCard extends GenericCard {
/// Creates a row for the exams which will be displayed under the closest
/// date exam with a separator between them.
Widget createSecondaryRowFromExam(BuildContext context, Exam exam) {
final locale = Provider.of<LocaleNotifier>(context).getLocale();
return Container(
margin: const EdgeInsets.only(top: 8),
child: RowContainer(
Expand All @@ -145,7 +146,7 @@ class ExamCard extends GenericCard {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Text(
'${exam.begin.day} de ${exam.month}',
'${exam.begin.day} de ${exam.month(locale)}',
style: Theme.of(context).textTheme.bodyLarge,
),
ExamTitle(
Expand Down

0 comments on commit c1cf436

Please sign in to comment.