From fa8c1f46a1ea73fdc42058d8c5c5521cb909928d Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 29 May 2021 15:48:51 +0200 Subject: [PATCH] Fix appearance issues --- lib/ui/widgets/forez_presence_calendar_widget.dart | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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; + }); + }, ); }