diff --git a/frontend/app_student/lib/week_schedule/views/widgets/events/event_card.dart b/frontend/app_student/lib/week_schedule/views/widgets/events/event_card.dart index ca8bef5..9c346ce 100644 --- a/frontend/app_student/lib/week_schedule/views/widgets/events/event_card.dart +++ b/frontend/app_student/lib/week_schedule/views/widgets/events/event_card.dart @@ -8,22 +8,23 @@ class EventCard extends StatelessWidget { const EventCard({ super.key, required this.event, - this.cardColor = CustomTheme.primaryColor, + this.cardColor = CustomTheme.primaryColorLight, + this.borderColor = CustomTheme.primaryColor, }); final EventModel event; final Color cardColor; - + final Color borderColor; @override Widget build(BuildContext context) { return Card( child: IntrinsicHeight( child: Container( decoration: BoxDecoration( - color: CustomTheme.primaryColorLight, + color: cardColor, border: Border( left: BorderSide( - color: cardColor, + color: borderColor, width: 10.0, ), ), @@ -65,7 +66,7 @@ class EventCard extends StatelessWidget { child: Padding( padding: const EdgeInsets.only(bottom: 10.0), child: Text( - '${AppLocalizations.of(context)!.roomLabel} ${event.salle}', + '${AppLocalizations.of(context)!.roomLabel} ${event.salle} ', style: CustomTheme.text.toColorWhite), ), ), diff --git a/frontend/app_student/lib/week_schedule/views/widgets/events/event_info.dart b/frontend/app_student/lib/week_schedule/views/widgets/events/event_info.dart index 359b16f..c741469 100644 --- a/frontend/app_student/lib/week_schedule/views/widgets/events/event_info.dart +++ b/frontend/app_student/lib/week_schedule/views/widgets/events/event_info.dart @@ -24,6 +24,9 @@ class EventInfo extends StatelessWidget { : EventCard( event: event, cardColor: event.eval + ? CustomTheme.secondaryColor + : CustomTheme.primaryColorLight, + borderColor: event.eval ? CustomTheme.secondaryColor : CustomTheme.primaryColor, );