iamvivekkaushik / DatePickerTimelineFlutter

Flutter Date Picker Library that provides a calendar as a horizontal timeline
Apache License 2.0
282 stars 198 forks source link

Left padding without clipping? #75

Open martin-braun opened 1 year ago

martin-braun commented 1 year ago

Is your feature request related to a problem? Please describe. A timeline should occupy the entire width of the screen since it is continuous. Placing the control without any margins however result in looking not so good, because it still should have some space to the left on the first day:

Screen Shot 2023-03-17 at 11 21 29 PM

This is also a problem with the last date and padding to the right, when I have limited numbers of days.

If I decide to just put a margin around things will clip:

Screen Shot 2023-03-17 at 11 21 06 PM

Describe the solution you'd like I think a margin to the ListView.Builder should be sufficient. Anything really to make the first day start farer and the last day earlier on the X axis, a setting to set an EdgeInset for the padding of the control.

Describe alternatives you've considered Starting a day earlier and making it inactive while showing one day too much and making the last day inactive can work out when the initial day is the 2nd day (today), but it feels hacky and shall confuses the user thinking the first day might be today, which wouldn't be the case.

I really prefer to have the first day to be today.