Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
fixing exams display color
Browse files Browse the repository at this point in the history
  • Loading branch information
Sehnryr committed Jan 26, 2022
1 parent e218895 commit 23fb03b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/src/schedule.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ class _ScheduleScreenState extends State<ScheduleScreen> {
.toList()
.join('\n');
bool isExam = event.containsKey('className') &&
event['className'] == 'est-epreuve';
event['className'] == 'est-epreuve' ||
RegExp(r'^(?:.*?(?: - )){2}(.+?) - ')
.firstMatch(event['title'])
.group(1) ==
"DEVOIRS SURVEILLES";
events.add(
FlutterWeekViewEvent(
title: title,
Expand Down

0 comments on commit 23fb03b

Please sign in to comment.