FlutterKerala / google_calendar_flutter

To add Google calendar event from flutter app

Repository from Github https://github.comFlutterKerala/google_calendar_flutterRepository from Github https://github.comFlutterKerala/google_calendar_flutter

Google Calender Event adder from Flutter

This is simple program to add google calender event from flutter alt text

Needed Dependencies

  • url_launcher:

How to use

eventData hold the Data

 Map eventData = {
    'eventName': 'Flutter Kerala',
    'eventDetails': 'Flutter',
    'eventStarting':  DateTime.utc(2019, 7, 20, 20, 18, 04).toUtc(),//! need to convert to Utc
    'eventEnding': DateTime.utc(2020, 7, 20, 20, 18, 04).toUtc(),//! need to convert to Utc
  };

To know more about Dart utc format

Then by using url_launcher we will launch the url

String url =  https://www.google.com/calendar/render?action=TEMPLATE&text=${eventData['eventName']}&dates=${eventData['eventStartingDate']}/${eventData['eventName']}Z&details=${eventData['eventEnding']}&sf=true&output=xml;

await launch(url);

launch function will launch the url

About

To add Google calendar event from flutter app


Languages

Language:Dart 78.3%Language:Kotlin 10.6%Language:Swift 10.2%Language:Objective-C 0.9%