Skip to content

Commit f03dde0

Browse files
committed
Remove ios event modal tool bar
1 parent 6a9733c commit f03dde0

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

example/lib/presentation/pages/calendar_event.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ class _CalendarEventPageState extends State<CalendarEventPage> {
413413
context,
414414
MaterialPageRoute(
415415
builder: (context) =>
416-
const EventAttendeePage()));
416+
EventAttendeePage(eventId: _event?.eventId)));
417417
if (result != null) {
418418
_attendees ??= [];
419419
setState(() {

ios/Classes/SwiftDeviceCalendarPlugin.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,15 +1009,13 @@ public class SwiftDeviceCalendarPlugin: NSObject, FlutterPlugin, EKEventViewDele
10091009
let flutterViewController = getTopMostViewController()
10101010
let navigationController = UINavigationController(rootViewController: eventController)
10111011

1012-
navigationController.toolbar.isTranslucent = false
1013-
navigationController.toolbar.tintColor = .blue
1014-
navigationController.toolbar.backgroundColor = .white
1012+
navigationController.setToolbarHidden(true, animated: false)
10151013

10161014
flutterViewController.present(navigationController, animated: true, completion: nil)
10171015

10181016

10191017
} else {
1020-
result(FlutterError(code: self.genericError, message: self.eventNotFoundErrorMessageFormat, details: nil))
1018+
self.finishWithEventNotFoundError(result: result, eventId: eventId)
10211019
}
10221020
}, result: result)
10231021
}

0 commit comments

Comments
 (0)