flutter Event Calendar Package

Pub License: MIT


Event Calendar

How to install :

Add this to your package's pubspec.yaml file:

dependencies:
  flutter_event_calendar: ^0.0.8

Then You can install packages from the command line:

$ pub get

or

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Now in your Dart code, you can use:

import 'package:flutter_event_calendar/flutter_event_calendar.dart';

flutter Event Calendar Package

Basic Usage :

You can load a full calendar with events .

  return EventCalendar(
        events: [
          Event(
            title: 'Laravel Event',
            description: 'The largest Laravel event of the year ...',
            dateTime: '2020-09-27 20:00',
          ),
        ],
      ),

flutter Event Calendar Package

Options :

You have many option for changes in : style , locale and structure.

Option Type
type String ( jalali or gregorian )
dateTime String ( yy-mm-dd H:i:s )
events List
font String
headerMonthStringType String ( full or short )
headerWeekDayStringType String ( full or short )
weekDaySelectedColor Color
weekDayUnselectedColor Color
dayIndexSelectedBackgroundColor Color
dayIndexUnselectedBackgroundColor Color
dayIndexSelectedForegroundColor Color
dayIndexUnelectedForegroundColor Color
emptyText String
emptyTextColor Color
emptyIcon IconData
emptyIconColor Color
eventBackgroundColor Color
eventTitleColor Color
eventDescriptionColor Color
eventDateTimeColor Color
isRTL bool

Event Structure

Option Type
title String
description String
dateTime String ( yy-mm-dd H:i:s )
onTap Function
onLongPress Function

Locales :

Event Calendar supports two types of calendar now . Gregorian , and Jalali . Whenevenr you change type , package change direction and language automatically.

Contribute :

You can help me and contribute for :

  • New options
  • More locales
  • Better exceptions