Welcome to the Flutter feedback portal. We’re happy you’re here! If you have feedback on how to improve the Flutter, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote


After upgrading `synfusion_flutter_calendar` to 24.2.6 from 24.2.4, our app crashes when attempting to open/view calendar events. (The Changelog shows no changes between versions.)The error is occurring in calendar_view_helper.dart on line 584:

String? notes = appointment.notes;

  static void raiseCalendarTapCallback(
      SfCalendar calendar,
      DateTime? date,
      List<dynamic>? appointments,
      CalendarElement element,
      CalendarResource? resource) {
    if (appointments != null && appointments.isNotEmpty) {
      for (final dynamic appointment in appointments) {
        String? notes = appointment.notes;
        if (notes != null && notes.isNotEmpty) {
          notes = notes.replaceAll('isOccurrenceAppointment', '');
          appointment.notes = notes;
        }
      }
    }
    calendar.onTap!(CalendarTapDetails(appointments, date, element, resource));
  }

It looks like that file has changed significantly, and this is probably also an issue for the `raiseCalendarLongPressCallback` method...Because `appointments` is a `List<dynamic>`, it may actually be a `List` of custom business objects, not `Appointment`s. In our case, the call to `appointment.notes` fails because there is no getter named notes on our custom object. Perhaps the `getNotes` method on `CalendarDataSource` should be used here instead? (We are properly overriding that method in our implementation, per the SfCalendar documentation.)

Rolling back to 24.2.4 is our workaround at the moment.