Skip to content

bbonk4/EventCalendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple Event calendar that utilizes RRule

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages