You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error Message:
startDate must be less than endDate.
This error occurs when you does not provide startDate or endDate in CalendarEventDate or provided endDate occurs before startDate.
'package:calendar_view/src/event_arrangers/side_event_arranger.dart':
Failed assertion: line 130 pos 11: '!(endTime.getTotalMinutes <= startTime.getTotalMinutes)'
The text was updated successfully, but these errors were encountered:
Hello @edoliantesjr That is the expected behaviour as we do not have the support for multi-day events yet.
Current implementation ignores dates in startTime and endTime parameters. So, If you have Date with value DateTime(2022, 08, 14, 14, 20) only hours and minutes will be considered. Year, Month and Day will be ignored.
_calendarWeekEventList.add(CalendarEventData( date: DateTime(2022, 08, 14, 20, 0), startTime: DateTime(2022, 08, 14, 20, 0), endTime: DateTime(2022, 08, 15, 8, 23), endDate: DateTime(2022, 08, 15, 8, 23), title: '${DateFormat.jm().format(_startDate)} ' '- ${DateFormat.jm().format(_endDate)} ' '\n${_provider.name}', event: _event.toJson(), description: _event.$id, color: colorFromString(_provider.color), ));
Error Message:
startDate must be less than endDate.
This error occurs when you does not provide startDate or endDate in CalendarEventDate or provided endDate occurs before startDate.
'package:calendar_view/src/event_arrangers/side_event_arranger.dart':
Failed assertion: line 130 pos 11: '!(endTime.getTotalMinutes <= startTime.getTotalMinutes)'
The text was updated successfully, but these errors were encountered: