搜尋套件、儲存庫與 APP 分類

flutter_advanced_calendar 封面
套件詳情v1.4.3

flutter_advanced_calendar

一個進階的日曆提供豐富的 API 用於小部件自訂,為您的應用帶來全新的外觀與感受。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1180
喜歡數
70
Pub 分數
140

安裝套件

flutter pub add flutter_advanced_calendar

套件介紹

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

Flutter Advanced Calendar 是一個高度可自訂的日曆組件,旨在提供豐富的 API 以實現廣泛的 UI 與功能自訂。它讓開發者能夠創建獨特且視覺上吸引人的日曆,以符合特定應用程式設計。該套件支援所有主要平台——包括 Android、iOS、Web、macOS、Windows 和 Linux,確保在不同裝置上都能提供一致的體驗。該套件強調彈性,支援與主題、樣式和事件處理的深度整合。

適用情境

  • 自定義事件排程介面
  • 應用特定的日期選擇器
  • 生產力應用中的豐富日曆檢視
  • 互動式時間軸顯示
  • 跨平台日曆組件

主要特色

  • 廣泛的 widget 自訂
  • 支援多個平台
  • 事件和日期強調
  • 高度靈活的佈局選項
  • 內建地區化支援

適合對象

  • 需要進階日曆 UI 的開發人員
  • 需要自定日期選擇的應用程式
  • 針對多個作業系統的專案

使用建議

  • 需要熟悉 Flutter 的 widget 系統
  • 複雜設計可能需要額外的樣式調整工作
  • 除了基本用法之外,文件內容有限

原始 README

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

flutter_advanced_calendar

An advanced calendar provides a rich API for widget customization that opens a new look and feel in your app.

Advanced Calendar Theme LAF

Advanced Calendar Light Theme Advanced Calendar Dark Theme
PREVIEW_LIGHT_COLLAPSED PREVIEW_DARK_COLLAPSED
PREVIEW_LIGHT_EXPANDED PREVIEW_DARK_EXPANDED

Examples

Regular Calendar

final _controller = AdvancedCalendarController.today();
// ...
AdvancedCalendar(
    controller: _controller,
)
// ...

Custom Date Calendar

final _controller = AdvancedCalendarController.custom(DateTime(2021, 2, 15));
// ...
final theme = ThemeData.light();

Theme(
  data: theme.copyWith(
    textTheme: theme.textTheme.copyWith(
      subtitle1: Ttheme.textTheme.subtitle1.copyWith(
        fontSize: 16,
        color: theme.accentColor,
      ),
      bodyText1: theme.textTheme.bodyText1.copyWith(
        fontSize: 14,
        color: Colors.black54,
      ),
      bodyText2: theme.textTheme.bodyText1.copyWith(
        fontSize: 12,
        color: Colors.black87,
      ),
    ),
    primaryColor: Colors.red,
    highlightColor: Colors.yellow,
    disabledColor: Colors.green,
  ),
  child: AdvancedCalendar(
    controller: _calendarControllerCustom,
    weekLineHeight: 48.0,
  ),
),
// ...

AdvancedCalendar Parameters

Parameter Description Type Default
controller Controller that manage calendar state AdvancedCalendarController required
weekLineHeight Height of week line double 32.0
preloadMonthViewAmount Amount of months in month view to preload int 13
preloadWeekViewAmount Amount of weeks in week view to preload int 21
weeksInMonthViewAmount Weeks lines amount in month view int 6
events List of DateTime to indicate date List []
startWeekDay Indicated for the beginning of the first day on Sunday int 0
innerDot Show alternative event design in date box bool false
headerStyle Style for month year on top left TextStyle null
calendarTextStyle Style for dates in calendar TextStyle null

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。