add_2_calendar 1.2.2 copy "add_2_calendar: ^1.2.2" to clipboard
add_2_calendar: ^1.2.2 copied to clipboard

outdated

A really simple Flutter plugin to add events to each platform's default calendar.

add_2_calendar #

A really simple Flutter plugin to add events to each platform's default calendar.

Installation #

In your pubspec.yaml file within your Flutter Project:

dependencies:
  add_2_calendar: ^1.2.2

iOS integration #

In order to make this plugin work on iOS 10+, be sure to add this to your info.plist file:

<key>NSCalendarsUsageDescription</key>
<string>INSERT_REASON_HERE</string>

Use it #

import 'package:add_2_calendar/add_2_calendar.dart';

final Event event = Event(
      title: 'Event title',
      description: 'Event description',
      location: 'Event location',
      startDate: DateTime(/* Some date here */),
      endDate: DateTime(/* Some date here */),
    );
...
Add2Calendar.addEvent2Cal(event);
...

Example #

Please run the app in the example/ folder to start playing!

321
likes
0
pub points
98%
popularity

Publisher

unverified uploader

A really simple Flutter plugin to add events to each platform's default calendar.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on add_2_calendar