SimformSolutionsPvtLtd / flutter_calendar_view

A Flutter package allows you to easily implement all calendar UI and calendar event functionality. 👌🔝🎉
https://pub.dev/packages/calendar_view
MIT License
433 stars 258 forks source link

Automatically Scroll to Current Time in DayView #331

Open windinternet opened 8 months ago

windinternet commented 8 months ago

In the DayView view, is there a way to have the widget automatically scroll to the current time, such that the present time is centered on the screen? If there is already an API or feature for this, could you guide me on how to use it? If not, it would be fantastic if such a feature could be added. Thank you!

AndreLuizNogueira commented 7 months ago

I'm also after this, I found some issues closed as completed, but no documentation on how to use it so far. did you solve this @windinternet ? I got it to work through scrollOffset, but to do that I have to guess the pixel position by time * hour_height, and that's not exactly centered