aleksanderwozniak / table_calendar

Highly customizable, feature-packed calendar widget for Flutter
Apache License 2.0
1.77k stars 974 forks source link

feat: parameter to add a space under the calendar #871

Open FDuhen opened 2 months ago

FDuhen commented 2 months ago

Currently, if you use the markerMargin parameter in order to add some top margin, the rendering of the Marker can be cropped at the bottom of the Calendar.

Capture d’écran 2024-05-02 à 09 17 42

The proposed solution would be to increase the rowHeight parameter in order to correctly handle the display of the markers. Sadly, this solution won't fit every needs. I ended up with the solution of adding a new parameter that I called bottomSpace (could have been bottomMargin, but I thought that this name was misleading) which job is to add some more space in the AnimatedContainer rendering the Calendar, and thus allowing to correctly draw the Markers.

Capture d’écran 2024-05-02 à 09 17 54

There might be a sexier solution to this issue, but it'd ask a lot more work and brain juice, alongside with a lot more of refactoring. With this update, it won't break anything to the current users

FDuhen commented 2 months ago

Related to this issue