I am creating a custom calendar with TableCalendar package, when I selected day 14 on calendar, Function selectedBuilder will rebuild a widget with black thicker size border, and I selected the same day 14 again, will deselected day and remove black thicker border on day 14, But I don't know how to deselect day of calendar.
How can I do this?
How to deselected a day on calendar
78 views Asked by Xuuan Thuc At
1

In the below-written code, the
focusedDayhas been set as the current day (Today). If you pick any other date, then the marker will update accordingly. But if you select the same date twice / tap it twice, it will roll back to the initial day (Today). So, when we want to de-select it, we tap on it again & it'll reset.Source code: