使用此包,您可以调用函数 ( exportToGoogleCalendar( required String identifier, required String summary, required String description, required DateTime startDateTime, required String startTimeZone, required DateTime endDateTime, required String endTimeZone,))
With this function the user is preseted the screen to connect their google account for adding the event for the first time only . For each successful event added true is returned otherwise false is returned .
特点
入门
首先,您需要在Google Cloud Platform (https://console.cloud.google.com) 上创建一个项目,并为该项目激活Google Calendar API,以获取API密钥。
用法
首先,您需要在Google Cloud Platform (https://console.cloud.google.com) 上创建一个项目,并为该项目激活Google Calendar API,以获取API密钥。
bool result = await exportToGoogleCalendar(identifier:"ssecret key",summary:"event name",description:"event description",startDateTime:DateTime.now(),startTimeZone:"GMT+2:00",endDateTime:DateTime.now().add(Duration(hours:1)),endTimeZone:"GMT+2:00");

