add_2_calendar_new
1.0.4, released 2 years ago by an unverified publisher
Simple Flutter plugin to add events to the device's default calendar.
What it does
It launches the native calendar UI to create a new event on iOS and Android. The plugin supports recurrence, reminders, and platform‑specific parameters. It works by invoking the platform's calendar intent or view.
AI-written summary of version 1.0.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to let users add events to their personal calendar with minimal code.
- You want a quick way to open the native calendar UI for event creation on both Android and iOS.
Skip it when
- You require full programmatic control over calendar data without user interaction.
- You need advanced calendar management, syncing, or offline storage.
Strengths
- Very easy to integrate and use.
- Supports both Android and iOS with platform‑specific options.
- Allows recurrence and reminders out of the box.
Weaknesses
- Only launches the native UI; cannot add events silently.
- Limited customization beyond provided parameters.
- Requires manual permission setup on each platform.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 0
Add READ_CALENDAR and WRITE_CALENDAR permissions and a <queries> element to AndroidManifest.xml. Add NSContactsUsageDescription (and optional CFBundleLocalizations) to iOS Info.plist.
import 'package:add_2_calendar_new/add_2_calendar_new.dart';
final event = Event(
title: 'Event title',
description: 'Event description',
location: 'Event location',
startDate: DateTime.now(),
endDate: DateTime.now().add(Duration(hours: 2)),
iosParams: IOSParams(reminder: Duration(hours: 1), url: 'https://example.com'),
androidParams: AndroidParams(emailInvites: []),
);
Add2Calendar.addEvent2Cal(event);Alternatives
Packages that do the same job and could replace add_2_calendar_new.
- snowplow_tracker
Flutter package for sending Snowplow analytics events on Android, iOS, and Web.
78Compare