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
393 stars 239 forks source link

'onDateTap' not working properly when 'startHour' is set #355

Closed DonnyDevIT closed 1 month ago

DonnyDevIT commented 2 months ago

I have an agenda that I set 'startHour: 6' because I want the time to start for 6am

When I click on an empty slot, the date of the click is not right, if I click 6am I get 0am, if I click 7am I get 1am an so on.

So the problem is even if I use 'startHour' in the 'onDateTap' function I have to make a fix for making it kick the right date.

... date = date.add(Duration(hours: 6)); //Fix starting point ... I added the same value of 'startHour' so the click hour is right. here some images

Screenshot agenda

Screenshot agenda

I click 7am with no fix

I click 7am with no fix

I click 7am with fix

I click 7am with fix
DonnyDevIT commented 2 months ago

Also the current time bullet is bugged due to that

Screenshot 2024-05-06 alle 14 25 51
apurva010 commented 1 month ago

This issue is duplicate of other one(#341) and it is already fixed in #350. So I am closing this issue.

DonnyDevIT commented 1 month ago

Ok, I wait for the fix :) May i ask a question? @apurva010 ?

Can you guys implement a 3days view? I really need it and the week view using 3weekdays not works properly