如何用Flutter以编程方式打开Goog​​le日历应用程序

时间:2019-01-31 10:35:56

标签: dart flutter

我曾尝试在flutter中使用url_launcher插件打开google日历应用程序,脚本如下:

if (await canLaunch('https://calendar.google.com/calendar/r/month/2019/1/24')) {
  await launch('https://calendar.google.com/calendar/r/month/2019/1/24');
  } else {
  throw 'Could not launch URL';
}

代码中没有错误,但是发生的是我改为通过浏览器而不是通过应用程序访问了Google日历。

为什么会这样,还有另一种选择吗?

谢谢。

1 个答案:

答案 0 :(得分:0)

我知道回答这个问题已经晚了,但有人可以从中得到帮助:-

https://calendar.google.com/calendar/u/0/r/eventedit?dates=20210226T033000/20210226T040000&ctz=Asia/Calcutta&location&text=Blawsome:+A+Crystal+Alchemy+Healing+Meditation&details=Parth+Pitroda

只需根据您的要求进行更改:)

如果你想测试这个谷歌事件,那么只需复制并点击这个。