diff --git a/lib/ui/widgets/forez_presence_calendar_widget.dart b/lib/ui/widgets/forez_presence_calendar_widget.dart index 7e05adf..9ed6ee1 100644 --- a/lib/ui/widgets/forez_presence_calendar_widget.dart +++ b/lib/ui/widgets/forez_presence_calendar_widget.dart @@ -46,10 +46,19 @@ class _PresenceCalendarWidgetState extends State { locale: "fr_FR", weekendDays: [], onHeaderTapped: _pickDate, - calendarBuilders: CalendarBuilders(defaultBuilder: _dayBuilder), + calendarBuilders: CalendarBuilders( + defaultBuilder: _dayBuilder, + todayBuilder: _dayBuilder, + selectedBuilder: _dayBuilder, + ), onDaySelected: _selectedDay, availableCalendarFormats: const {CalendarFormat.month: "Mois"}, focusedDay: selectedDay, + onPageChanged: (s) { + setState(() { + selectedDay = s; + }); + }, ); }