event_calendar

Last updated:

0 purchases

event_calendar Image
event_calendar Images
Add to Cart

Description:

event calendar

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);
copied to clipboard
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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.