Hello,
I am trying out the Calendar and it has been awesome so far. However, I am facing this issue: I am allowing the user to create recurrence rules and everything works great, except, for example, with events that happen every 2 days with no end date. If I create the following recurrence and generate it as a recurrence rule, the calendar correctly displays the event every two days:
RecurrenceProperties props = RecurrenceProperties(
interval: 2,
recurrenceType: RecurrenceType.daily,
recurrenceRange: RecurrenceRange.noEndDate,
);
var startDate = DateTime.now();
String rule = SfCalendar.generateRRule(props, startDate, startDate.add(const Duration(hours: 1)));
// rule is 'FREQ=DAILY;INTERVAL=2'
Then, if I try to parse the rule to update its corresponding RecurrenceProperties, I end up with the following:
RecurrenceProperties parsed = SfCalendar.parseRRule(rule, startDate);
// parsed has interval: 1.
If I try to generate the rule out of parsed, I get 'FREQ=DAILY;INTERVAL=1' (interval is different). Any ideas what I could be missing here?