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.

OptionType
typeString ( jalali or gregorian )
dateTimeString ( yy-mm-dd H:i:s )
eventsList
fontString
headerMonthStringTypeString ( full or short )
headerWeekDayStringTypeString ( full or short )
weekDaySelectedColorColor
weekDayUnselectedColorColor
dayIndexSelectedBackgroundColorColor
dayIndexUnselectedBackgroundColorColor
dayIndexSelectedForegroundColorColor
dayIndexUnelectedForegroundColorColor
emptyTextString
emptyTextColorColor
emptyIconIconData
emptyIconColorColor
eventBackgroundColorColor
eventTitleColorColor
eventDescriptionColorColor
eventDateTimeColorColor
isRTLbool

Event Structure

OptionType
titleString
descriptionString
dateTimeString ( yy-mm-dd H:i:s )
onTapFunction
onLongPressFunction

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

Libraries

flutter_event_calendar