Single day all-day event renders as a timed event

I don't know if this is a bug or user error:


 When I define an all-day event for only 1 day, it renders showing the start and end time.  

 I also  get the same result if I define an end time later than the start time,, still on the same day.


Thank you !


DateTime startTime = DateTime(2022, 5, 14);
DateTime endTime = startTime.add(const Duration(days: 27));
meetings.add( Meeting(subject:'Multiday', startTime:startTime, endTime:endTime, color:const Color(0xFF0F8644), isAllDay: true));

endTime = startTime.add(const Duration(days: 4));
meetings.add( Meeting(subject:'Sub multiday', startTime:startTime, endTime:endTime, color:Colors.blue, isAllDay: true));

startTime = startTime.add(const Duration(days: 13));
// using this end time gives the same result as using the start time as the end time
// endTime = startTime.add(const Duration(minutes:10));

meetings.add( Meeting(subject:'Single Day', startTime:startTime, endTime:startTime, color:Colors.red, isAllDay: true));


image_6.png


3 Replies 1 reply marked as answer

IR Indumathi Ravichandran Syncfusion Team May 13, 2022 01:12 PM UTC

Hi Adam,


Based on the shared code snippet, we have checked the issue “Single all day event renders as a normal  appointment in the Flutter Calendar”. We have prepared the simple sample with the shared code snippet, all day event renders properly. We have attached the tested sample and screenshot for the same. Please find the sample and screenshot from below.


Sample link:

https://www.syncfusion.com/downloads/support/directtrac/general/ze/flutter_alldayappointment-105339760.zip


Screenshot:



Please check the sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario and revert us with following details,


  • Exact code snippet


It will be helpful for us to check on it and provide you solution at the earliest.


Regards,

Indumathi R


Marked as answer

AL Adam L Levine May 16, 2022 08:41 PM UTC

Thank you for your solution.  It led us to find a problem in the code that was returning the wrong information.



IR Indumathi Ravichandran Syncfusion Team May 17, 2022 04:44 AM UTC

Hi Adam,


We are glad to know that your issue has been fixed. Please let us know if you need any other assistance. We will be happy to assist you. 


Regards,

Indumathi R


Loader.
Up arrow icon