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

Issue 311 start hour #319

Merged
merged 15 commits into from
Feb 21, 2024

Conversation

rmpt
Copy link
Contributor

@rmpt rmpt commented Feb 3, 2024

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 #240 but only resolves the 'min' hour.

MAEL KEHL and others added 9 commits August 9, 2023 11:06
Still need to handle how events are placed in the calendar, components
modified :
- WeekView
- DayView
- InternalDayView
- InternalWeekView
- TimeLine
- HourLinePainter
- HalfHourLinePainter
- PressDetector
Modifications on EventArrangers so they are placing events in function
of 'startHour' argument.

Widgets Modified :

- EventArrangers
- MergeEventArrangers
- SideEventArrangers

+ Modifications on DayView, so we can pass it the 'startHour' argument
@rmpt
Copy link
Contributor Author

rmpt commented Feb 7, 2024

can anyone review and merge this PR please?

@rmpt rmpt changed the title Issue 311 min hour Issue 311 start hour Feb 7, 2024
@ParthBaraiya ParthBaraiya self-requested a review February 21, 2024 17:39
@ParthBaraiya
Copy link
Collaborator

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

@ParthBaraiya ParthBaraiya linked an issue Feb 21, 2024 that may be closed by this pull request
@rmpt
Copy link
Contributor Author

rmpt commented Feb 21, 2024

@ParthBaraiya please give it a look

Copy link
Collaborator

@ParthBaraiya ParthBaraiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ParthBaraiya ParthBaraiya merged commit ed7288e into SimformSolutionsPvtLtd:master Feb 21, 2024
1 check passed
@Adm94
Copy link

Adm94 commented Apr 16, 2024

@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

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

Successfully merging this pull request may close these issues.

Min/max hour for week and day view
4 participants