搜尋分類、套件與程式碼儲存庫

flutter_event_calendar 封面
套件詳情v1.0.0

flutter_event_calendar

適用於 Flutter 的格里曆與伊朗歷事件日曆,支援樣式變更選項

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
145
喜歡數
66
Pub 分數
120

安裝套件

flutter pub add flutter_event_calendar

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個用於顯示格里高利曆與雅利安曆日曆並支援事件的 Flutter 套件,提供可自訂樣式選項。它讓開發者能夠在其應用程式中整合雙日曆功能,同時支援國際與波斯日期系統。此套件設計易於使用且具彈性 UI 自訂功能,非常適合跨多個平台的排程、規劃或預約類應用程式。

適用情境

  • 安排預約
  • 管理雙日曆格式中的事件
  • 建構個人計畫
  • 顯示假期日曆
  • 建立事件豐富的儀表板

主要特色

  • 支援格里高利曆與伊朗曆
  • 可自訂的日曆樣式
  • 事件整合與顯示
  • 跨平台相容性
  • 易於使用的 API
  • 響應式設計

適合對象

  • 開發日曆應用的開發者
  • 需要雙日期系統支援的應用程式
  • 面向使用者介面的排程工具
  • 面向波斯語使用者的專案
  • 跨平台 Flutter 應用程式

使用建議

  • 需要手動管理事件資料
  • 樣式自定義可能需要類似 CSS 的知識
  • 內建的本地化功能有限,僅支援特定的日曆
  • 無原生時區處理
  • 依賴外部來源程式碼以取得更新
  • 可能需要額外的狀態管理來處理複雜互動

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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: ^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 .

    return EventCalendar(
      calendarType: CalendarType.JALALI,
      calendarLanguage: 'fa',
      events: [
        Event(
          child: const Text('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.

Option Type
calendarType CalendarType ( JALALI or GREGORIAN )
middleWidget Widget
events List
calendarOptions CalendarOptions
headerOptions HeaderOptions
eventOptions EventOptions
dayOptions DayOptions
showLoadingForEvent bool
specialDays List
calendarLanguage String(fa,en,pt,de)
Events
Name Description
onInit Called when Event Calendar object is inserted into the tree.
onChangeDateTime Return a string of new date selected like (year-month-day)
onMonthChanged When the month changes return a string of CalendarDateTime (year-month-day hour:minute:second)
onYearChanged When the year changes return a string of CalendarDateTime (year-month-day hour:minute:second)
onDateTimeReset When clicking on the reset button return a string of current CalendarDateTime (year-month-day hour:minute:second)
onChangeViewType When clicking on the toggleViewType return ViewType

CalendarOptions :

Option Type Description
toggleViewType bool Whether user can toggle view type between monthly and daily or not
viewType ViewType Default view type of Calendar Daily or Monthly
font String Name of your font
headerMonthBackColor Color The background color of Calendar card
headerMonthShadowColor Color The shadow color of Calendar card
headerMonthElevation double The elevation of shadow color Calendar card
headerMonthShape ShapeBorder The shape of Calendar card like(RoundedRectangleBorder)
bottomSheetBackColor Color The background color of select month and year bottom sheet)
HeaderOptions :
Option Type Description
weekDayStringType WeekDayStringTypes Day names FULL or SHORT
MonthStringTypes MonthStringTypes Month names FULL or SHORT
headerTextColor Color The color of Header Text
navigationColor Color The color of Header navigation icons
resetDateColor Color The color of reset date icon
EventOptions :
Option Type Description
emptyText String if it doesn't have any event, this text will display
emptyTextColor Color The color of empty text
emptyIcon IconData if it doesn't have any event, this icon will display
emptyIconColor Color The color of empty icon
DayOptions :
Option Type Description
weekDaySelectedColor Color The color of the Selected weekday
weekDayUnselectedColor Color The color of the UnSelected weekday
showWeekDay bool Whether weekdays show or not
compactMode bool Whether the Calendar card is compact or not
selectedBackgroundColor Color The background color of the selected day
unselectedBackgroundColor Color The background color of the unselected day
selectedTextColor Color The text color of the selected day
disabledTextColor Color The text color of the disabled day
unselectedTextColor Color The text color of the unselected day
eventCounterColor Color The background color of the event counter
eventCounterViewType DayEventCounterViewType The view type of event counter
eventCounterTextColor Color The text color of the event Counter
disableFadeEffect bool Whether days before now has fade effect or not
disableDaysBeforeNow bool Whether days before now Disabled or not
Event Structure
Option Type
child Widget
dateTime CalendarDateTime
onTap Function
onLongPress Function

Locales :

Event Calendar supports two types of calendar now . Gregorian , and Jalali .

Contribute :

You can help us and contribute for :

  • New options
  • More locales
  • Better exceptions

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。