Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Gregorian and Jalali Event calendar for flutter with options for change style

License

NotificationsYou must be signed in to change notification settings

novaday-co/flutter_event_calendar

Repository files navigation

flutter Event Calendar Package

PubLicense: MIT


Event Calendar

How to install :

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

dependencies:flutter_event_calendar:^1.0.0

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 .

returnEventCalendar(      calendarType:CalendarType.JALALI,      calendarLanguage:'fa',      events: [Event(          child:constText('Laravel Event'),          dateTime:CalendarDateTime(            year:1401,            month:5,            day:12,            calendarType:CalendarType.JALALI,          ),        ),      ],    );

flutter Event Calendar Package

Options :

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

OptionType
calendarTypeCalendarType ( JALALI or GREGORIAN )
middleWidgetWidget
eventsList
calendarOptionsCalendarOptions
headerOptionsHeaderOptions
eventOptionsEventOptions
dayOptionsDayOptions
showLoadingForEventbool
specialDaysList
calendarLanguageString(fa,en,pt,de)

Events

NameDescription
onInitCalled when Event Calendar object is inserted into the tree.
onChangeDateTimeReturn a string of new date selected like (year-month-day)
onMonthChangedWhen the month changes return a string of CalendarDateTime (year-month-day hour:minute:second)
onYearChangedWhen the year changes return a string of CalendarDateTime (year-month-day hour:minute:second)
onDateTimeResetWhen clicking on the reset button return a string of current CalendarDateTime (year-month-day hour:minute:second)
onChangeViewTypeWhen clicking on the toggleViewType return ViewType

CalendarOptions :

OptionTypeDescription
toggleViewTypeboolWhether user can toggle view type between monthly and daily or not
viewTypeViewTypeDefault view type of Calendar Daily or Monthly
fontStringName of your font
headerMonthBackColorColorThe background color of Calendar card
headerMonthShadowColorColorThe shadow color of Calendar card
headerMonthElevationdoubleThe elevation of shadow color Calendar card
headerMonthShapeShapeBorderThe shape of Calendar card like(RoundedRectangleBorder)
bottomSheetBackColorColorThe background color of select month and year bottom sheet)

HeaderOptions :

OptionTypeDescription
weekDayStringTypeWeekDayStringTypesDay names FULL or SHORT
MonthStringTypesMonthStringTypesMonth names FULL or SHORT
headerTextColorColorThe color of Header Text
navigationColorColorThe color of Header navigation icons
resetDateColorColorThe color of reset date icon

EventOptions :

OptionTypeDescription
emptyTextStringif it doesn't have any event, this text will display
emptyTextColorColorThe color of empty text
emptyIconIconDataif it doesn't have any event, this icon will display
emptyIconColorColorThe color of empty icon

DayOptions :

OptionTypeDescription
weekDaySelectedColorColorThe color of the Selected weekday
weekDayUnselectedColorColorThe color of the UnSelected weekday
showWeekDayboolWhether weekdays show or not
compactModeboolWhether the Calendar card is compact or not
selectedBackgroundColorColorThe background color of the selected day
unselectedBackgroundColorColorThe background color of the unselected day
selectedTextColorColorThe text color of the selected day
disabledTextColorColorThe text color of the disabled day
unselectedTextColorColorThe text color of the unselected day
eventCounterColorColorThe background color of the event counter
eventCounterViewTypeDayEventCounterViewTypeThe view type of event counter
eventCounterTextColorColorThe text color of the event Counter
disableFadeEffectboolWhether days before now has fade effect or not
disableDaysBeforeNowboolWhether days before now Disabled or not

Event Structure

OptionType
childWidget
dateTimeCalendarDateTime
onTapFunction
onLongPressFunction

Locales :

Event Calendar supports two types of calendar now .Gregorian , andJalali .

Contribute :

You can help us and contribute for :

  • New options
  • More locales
  • Better exceptions

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp