Event Calendar
How to install :
Add this to your package's pubspec.yaml file:
dependencies:
flutter_event_calendar: ^0.0.6
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';
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',
),
],
),
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
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