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

fix: 🐛 onDateTap return wrong date when startHour is set #341 #347

Closed
wants to merge 1 commit into from

Conversation

apurva010
Copy link
Collaborator

  • add startHour minutes (startHour * 60) to DateTime which then passed as arguments to onDateTap

Description

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

Closes #341

@apurva010 apurva010 requested a review from ParthBaraiya April 30, 2024 05:41
@@ -634,7 +634,7 @@ class DayViewState<T extends Object?> extends State<DayView<T>> {
date.month,
date.day,
0,
minuteSlotSize.minutes * i,
minuteSlotSize.minutes * i + (_startHour * 60),

Choose a reason for hiding this comment

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

This appears to be a duplicate widget in both the day view and the week view. Could you please create a separate, common widget for this?

@apurva010 apurva010 removed the request for review from ParthBaraiya April 30, 2024 13:18
- add startHour minutes (startHour * 60) to DateTime which then passed as arguments to onDateTap
@apurva010 apurva010 force-pushed the fix/issue_341_onDateTap_changes branch from bafbdb0 to c782b36 Compare May 1, 2024 05:28
@apurva010 apurva010 closed this May 1, 2024
@apurva010
Copy link
Collaborator Author

Close this and create a new one : #350

@apurva010 apurva010 deleted the fix/issue_341_onDateTap_changes branch May 1, 2024 06:13
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.

Wrong date onDateTap when startHour != 0
2 participants