Easy Event Calendar
A simple event calendar for Flutter. Just pass events and this widget will show them in a calendar.
Getting started
Add dependency with flutter pub add
command
flutter pub add easy_event_calendar
Or Add below line to pubspec.yaml
dependencies: ... easy_event_calendar: any # or special version
Usage
void main() { List<CalendarEvent> eventDates = [ CalendarEvent(date: DateTime(2024, 10, 05), eventCount: 2), CalendarEvent(date: DateTime(2024, 10, 5), eventCount: 2), CalendarEvent(date: DateTime(2024, 10, 02), eventCount: 3), CalendarEvent(date: DateTime(2024, 11, 26), eventCount: 1), CalendarEvent(date: DateTime(2024, 12, 14), eventCount:2 ), CalendarEvent(date: DateTime(2024, 12, 14), eventCount: 3), CalendarEvent(date: DateTime(2024, 3, 8), eventCount:4), ]; runApp( MaterialApp( home: Scaffold( body: EasyEventCalendar( // List of calendar events to be displayed on the calendar. eventDates: eventDates, // The callback to be triggered when a date is tapped. onDateClick: (DateTime dateTime) { if (kDebugMode) { print("date value: ${dateTime.toString()}"); } }, //or // onDateClick: onClick, // The color of the calendar. calenderColor: Colors.brown, // The color of the events on the calendar. eventColor: Colors.purple, )), ), ); onClick(DateTime dateTime) { if (kDebugMode) { print("date value: ${dateTime.toString()}"); } } }