Skip to content

FlutterKerala/google_calendar_flutter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 78.3%
  • Kotlin 10.6%
  • Swift 10.2%
  • Objective-C 0.9%