werner-scholtz / kalender

An elegantly crafted Flutter calendar UI package.
MIT License
107 stars 29 forks source link

Custom Hour Height #80

Closed Barry0501 closed 1 month ago

Barry0501 commented 4 months ago

Hello author, thanks for taking the time to create a great library. Because the Event has a duration of 15 minutes displayed in the interface is too small, I want to extend the hourly interval to display full event information with a duration of 15 minutes. How can I do that?

Screenshot 2024-07-04 at 16 18 04
werner-scholtz commented 4 months ago

Hi you should be able to adjust the heightPerMinute value on the calendar controller, which increases the hourly interval. The web_demo has an example of how to use cntl+scroll wheel to zoom in/out on the calendar, this also works with pinch to zoom on mobile.

KmiloRe commented 3 months ago

Hi, could you please clarify where should I change the heightPerMinute exactly on the calendar view in order to make the hourly interval bigger? sorry to bother you, thanks 4 the great library!

werner-scholtz commented 3 months ago

Hi yeah, the CalendarController has a function adjustHeightPerMinute(double value) which you can use to change the height.