Calendar widget with different coloured dates depending on database entries

Widgets & Design

I want to create a calendar widget that displays my training history. There are different training types. In my supabase database I have a table "training" that includes the type and the date.

I would like to display the calendar widget and the dates should be coloured differently depending on the training type of this day.

e.g. every day that has an entry with type "gym" in the supabase table should be displayed blue in the calendar widget

Is there any way I could do this with the FlutterFlow calendar widget? I would prefer to change the background colour of the date but it would also be fine to change the font colour of the date.

What have you tried so far?

I tried to change the font colour of the date with an if <-> else condition but it didn't work out.

Did you check FlutterFlow's Documentation for this topic?
Yes
2
2 replies