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
418 stars 253 forks source link

Issue 311 start hour #319

Closed rmpt closed 7 months ago

rmpt commented 8 months ago

Forked from issue 240 that has been dead from some time.

This feature adds a startHour parameter in WeekView + DayView that allows us to choose from which hour a day will be displayed. The parameter is an int that goes from 0 to 23.

Example with the startHour parameter set to 5 : image

Checklist

The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc). I have followed the Contributor Guide when preparing my PR. I have updated/added tests for ALL new/updated/fixed functionality. I have updated/added relevant documentation in docs and added dartdoc comments with ///.

I have updated/added relevant examples in examples or docs.

Breaking Change?

Yes, this PR is a breaking change.

No, this PR is not a breaking change.

Related Issues

Based on the issue https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/issues/240 but only resolves the 'min' hour.

rmpt commented 7 months ago

can anyone review and merge this PR please?

ParthBaraiya commented 7 months ago

Thanks for creating this PR @rmpt . If possible can you please resolve the conflict in one file. I will review this immediately.

rmpt commented 7 months ago

@ParthBaraiya please give it a look

Adm94 commented 5 months ago

@rmpt A good and needed feature thank you 👍🏼 But I noticed that the live vertical timeline is lowered if startHour is greater than 0 and therefore no longer corresponds to the current time