Skip to content

Commit

Permalink
🐛: Fixed color for EI
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPLukaas committed Apr 11, 2024
1 parent 3c216bd commit 288d777
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
),
Expand Down Expand Up @@ -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),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit 288d777

Please sign in to comment.