fl_add_to_calender 1.0.5 copy "fl_add_to_calender: ^1.0.5" to clipboard
fl_add_to_calender: ^1.0.5 copied to clipboard

Fidenz flutter add to calender plugin

Fidenz Add To Calendar Plugin #

Android Integration #

The following will need to be added to the AndroidManifest.xml file for your application to indicate permissions to modify calendars are needed

<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />

iOS Integration #

For iOS 10+ support, you'll need to modify the Info.plist to add the following key/value pair

<key>NSCalendarsUsageDescription</key>
<string>Access most functions for calendar viewing and editing.</string>

For iOS 17+ support, add the following key/value pair as well.

<key>NSCalendarsFullAccessUsageDescription</key>
<string>Access most functions for calendar viewing and editing.</string>

Update the Podfile to include the necessary build settings for enabling calendar permissions by adding the following code inside the post_install block

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)

    // Add this after permission_handler installed on your project
    target.build_configurations.each do |config|
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',
        'PERMISSION_EVENTS_FULL_ACCESS=1',
      ]
    end

  end
end

Use it #

import 'package:add_2_calendar/add_2_calendar.dart';

final Event event = Event(
    title: 'Calendar event',
    startTime: '2024-12-28T10:30:00',
    endTime: '2024-12-28T11:30:00',
    eventTimeZone: timezone
);
...
FlAddToCalender.addEvent(context, event);
...
2
likes
110
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

Fidenz flutter add to calender plugin

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, intl, plugin_platform_interface

More

Packages that depend on fl_add_to_calender

Packages that implement fl_add_to_calender