Skip to content
pubscout

icalendar_parser

2.1.0, released 2 years ago by rouxguillau.me

Package to parse iCalendar (.ics) files written in pure Dart.

WASM-ready
$ flutter pub add icalendar_parser
Source repository

What it does

Parses iCalendar (.ics) string contents or lines into a structured ICalendar object. Supports conversion to JSON format and registering or unregistering custom fields.

AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to parse .ics calendar files or data strings in a pure Dart or Flutter application.
  • You want to convert calendar events and properties into a JSON-compatible map.

Skip it when

  • You need to write, manage, or fully sync iCalendar files back to a remote calendar provider.

Strengths

  • Written in pure Dart supporting multiple platforms (Android, iOS, Web, Windows, macOS, Linux).
  • Allows custom field registration and unregistration for parsing unsupported properties.
  • Provides straightforward methods like ICalendar.fromString and ICalendar.fromLines.

Weaknesses

  • Relies on a fixed set of natively supported properties unless custom fields are manually registered.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:icalendar_parser/icalendar_parser.dart';

final iCalendar = ICalendar.fromString(icsString);
final jsonMap = iCalendar.toJson();

Alternatives

Packages that do the same job and could replace icalendar_parser.

  • markdown

    A portable Markdown library written in Dart that can parse Markdown into HTML.

  • loading_indicator

    A collection loading animations written in pure dart. Out of the box, no extra dependency.

  • enough_icalendar

    Parse, generate, and respond to iCalendar (.ics) invites in pure Dart.

  • minted

    Shared vocabulary types and outcomes for the minted family of domain-parsing packages.