add_to_calendar 0.0.1 copy "add_to_calendar: ^0.0.1" to clipboard
add_to_calendar: ^0.0.1 copied to clipboard

outdated

A Flutter plugin that allows opening a native UI to add an event with custom parameters to user calendar

add_to_calendar #

pub package

Flutter plugin that allows opening a native UI to add an event with custom parameters to user's calendar

Installation #

Declare a pubspec dependency in your Flutter project.

In iOS #

Add NSCalendarsUsageDescription String entry in your info.plist explaining why you require calendar access permissions.

What is it for? #

It allows developers

How to use it? #

You can check the Example app to see a real use case on how to trigger the native view to add custom events to user's calendar. Snippet of the main function of the plugin:

  /// Function responsible of triggering the native view to create a custom event in user's calendar using given parameters
  /// 
  /// [title] is String value of the title to be filled
  /// [startTime] DateTime with the start time of the event
  /// [endTime] DateTime with the end time of the event. Optional if [isAllDay] is true, required otherwise.
  /// [isAllDay] bool value stating if the event will be a full day event
  /// [location] optional String with the location of the event
  /// [description] optional String with the description of the event
  /// 
  static Future addToCalendar({
    @required String title,
    @required DateTime startTime,
    DateTime endTime,
    bool isAllDay = false,
    String location,
    String description,
  })
8
likes
0
pub points
9%
popularity

Publisher

unverified uploader

A Flutter plugin that allows opening a native UI to add an event with custom parameters to user calendar

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, meta

More

Packages that depend on add_to_calendar