event_calendar 0.0.14

Flutter Android iOS web

A flutter package to create local events non reliant on a device's local calendar system.

Event Calendar #

This package is for calculating calendar events with Reccurring events without the use of device calendar.

Installation #

Just add the latest version of event_calendar to the pubspec.yabl file

Side note #

Due to the nature of this package unit testing can be dificult so if you find any inaccurate dates please share them on the issues page.

Usage #

Start off by creating a calendar. You can add an event with the addEvent(Event event). You can follow the simple example below or look at the ./example/main.dart file.

Calendar calendar = new Calendar(title: "My Calendar", id:"calendarID");

calendar.addEvent(Event(DateTime(2020, 6, 1, 10, 0, 0), id: "1", title: "Single event"));

//Get a single next event
calendar.getNextEvent(startAfter: DateTime(2020, 5, 28, 12, 0, 0));

DateTime start = DateTime(2020, 5, 28, 12, 0, 0);
DateTime end = DateTime(2020, 6, 2, 12, 0, 0);

//get all events within a time frame
List<Events> events = calendar.getEvents(start, end);

Calendar Features #

[x] Parse to and from json
[x] Get next Event
[x] Get events in time frame
[x] Limit event ocurrences
[x] Intervals
[x] Recurring events

  • Hourly
  • Daily
  • Weekly
  • Monthly (both from start of month and from last date)
  • Yearly

TODO
[] Completions
[] Exceptions
[] Exclusions

0
likes
90
pub points
56%
popularity

A flutter package to create local events non reliant on a device's local calendar system.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

bonkabonkstudios@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on event_calendar