Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Left padding without clipping? #75

Open
martin-braun opened this issue Mar 17, 2023 · 0 comments
Open

Left padding without clipping? #75

martin-braun opened this issue Mar 17, 2023 · 0 comments

Comments

@martin-braun
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant