diff --git a/example/lib/presentation/pages/calendar_event.dart b/example/lib/presentation/pages/calendar_event.dart index 83ad1a23..f50f76c8 100644 --- a/example/lib/presentation/pages/calendar_event.dart +++ b/example/lib/presentation/pages/calendar_event.dart @@ -413,7 +413,7 @@ class _CalendarEventPageState extends State { context, MaterialPageRoute( builder: (context) => - const EventAttendeePage())); + EventAttendeePage(eventId: _event?.eventId))); if (result != null) { _attendees ??= []; setState(() { diff --git a/ios/Classes/SwiftDeviceCalendarPlugin.swift b/ios/Classes/SwiftDeviceCalendarPlugin.swift index 323c8f5a..18b1e45d 100644 --- a/ios/Classes/SwiftDeviceCalendarPlugin.swift +++ b/ios/Classes/SwiftDeviceCalendarPlugin.swift @@ -1009,15 +1009,13 @@ public class SwiftDeviceCalendarPlugin: NSObject, FlutterPlugin, EKEventViewDele let flutterViewController = getTopMostViewController() let navigationController = UINavigationController(rootViewController: eventController) - navigationController.toolbar.isTranslucent = false - navigationController.toolbar.tintColor = .blue - navigationController.toolbar.backgroundColor = .white + navigationController.setToolbarHidden(true, animated: false) flutterViewController.present(navigationController, animated: true, completion: nil) } else { - result(FlutterError(code: self.genericError, message: self.eventNotFoundErrorMessageFormat, details: nil)) + self.finishWithEventNotFoundError(result: result, eventId: eventId) } }, result: result) }