icalendar_parser 0.4.0
icalendar_parser: ^0.4.0

Dart native js
Flutter Android iOS web

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

icalendar_parser #

Issues Forks Stars Pub Version

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

Implementation of AnyFetch's ics-parser in JavaScript.

Getting Started #

Add icalendar_parser to your pubspec.yaml:

icalendar_parser: any

How to use #

You can refer to the example/ folder for a complete example implemented in Flutter.

ICalendar.fromString #

import 'package:flutter/services.dart' show rootBundle;
import 'package:icalendar_parser/icalendar_parser.dart';

final icsString = await rootBundle.loadString('assets/your_file.ics');
final iCalendar = ICalendar.fromString(icsString);

ICalendar.fromLines #

final icsLines = await File('your_file.ics').readAsLines();
final iCalendar = ICalendar.fromLines(lines);

TODO #

(Might add some more)

  • [ ] Parse VEVENT into object
  • [ ] Parse VALARM into object
  • [ ] Parse VTODO into object
  • [ ] Parse VJOURNAL into object
  • [ ] Parse VFREEBUSY into object
  • [ ] Generate ICalendar object from JSON
  • [x] Add unit tests
  • [x] Configure CI script
  • [ ] Support parameters
7
likes
100
pub points
44%
popularity

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

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

rouxguillaume8@gmail.com

License

GPL 3.0 (LICENSE)

More

Packages that depend on icalendar_parser