カテゴリー・パッケージ・リポジトリを検索

calendar_awesome のカバー
パッケージ詳細v0.0.3

calendar_awesome

"ジャラリ暦"および"グレゴリアン暦"用のカスタマイズ可能なカレンダーウィジェット

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
50
いいね数
8
Pub ポイント
135

パッケージをインストール

flutter pub add calendar_awesome

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

ジャラリ暦とグレゴリオ暦の両方の日付システムをサポートする、非常にカスタマイズ可能なカレンダーウィジェットです。Flutterアプリケーションへのスムーズな統合を目的としており、柔軟なスタイル設定、イベントのマーク、月や年をまたいでスムーズにナビゲートできる機能を提供します。文化的または地域的な日付フォーマットの好みを持つ日付選択が必要なアプリに最適です。Android、iOS、Web、macOS、Windows、Linuxなど複数のプラットフォームをサポートしており、広範な互換性を確保しています。開発者はアプリのデザイン要件に合わせて外観や動作をカスタマイズできます。

用途

  • ペルシャ(ジャラリ)アプリケーションにおける日付選択
  • 国際アプリにおけるグレゴリオ暦の統合
  • カスタムマーカーを使用したイベントスケジューリング
  • マルチプラットフォームの日付ピッカー
  • カレンダー用のカスタマイズ可能なUI
  • 時間ベースの計画ツール

主な機能

  • ジャラリ暦およびグレゴリオ暦をサポート
  • 高度にカスタマイズ可能な外観
  • イベントのハイライトとマーク
  • クロスプラットフォーム互換性
  • スムーズな月/年ナビゲーション
  • 開発者向けの拡張可能な API

適している対象

  • イラン人またはペルシャ語話者をターゲットにしたアプリ
  • 二重カレンダー対応を必要とする国際的なアプリ
  • カレンダーUIを完全に制御したい開発者
  • マルチプラットフォームの日付ピッカーを必要とするプロジェクト
  • 複雑な日付インタラクションが必要なアプリケーション

注意事項

  • ジャラーリ暦とグレゴリオ暦の変換を手動で処理する必要があります
  • 高度なカスタマイズのためのドキュメントが限られている
  • デフォルト以外のテーマ用に追加のスタイリングが必要になる場合があります
  • 非常に大きなイベントデータセットには最適化されていません
  • 外部の日付パースライブラリに依存しています

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

calendar_awesome

A customizable calendar widget (Jalali & Gregorian) for Flutter

Image

Installation

Run this command:

flutter pub add calendar_awesome

or Include instructions on how to install your library using pubspec.yaml:

dependencies:
  calendar_awesome: ^0.0.1

Simple Usage

import 'package:calendar_awesome/calendar_awesome.dart';

CalendarAwesome(
  date: const GregorianDate(2024, 8), /// or JalaliDate(1403,5) 
  onChange: (onChangeParam) {
  print(onChangeParam.date);
  print(onChangeParam.tasks);
  print(onChangeParam.events);
  print(onChangeParam.holidays);
  }
)

Properties for CalendarAwesome

Property Description Type Required Default value
date To determine the type, year and month of the default calendar GregorianDate(2024,8)&JalaliDate(1403,5) CustomDate YES
events A list that takes the class EventClass and is shown as a dot above the days List no []
tasks A list that takes the class TaskClass and is shown linearly under the days List no []
holidays A list that takes a HolidayClass class that displays dates as holidays List no []
showWeekend Weekends are closed or not bool no true
activeSelectDate The user can choose a day or not bool no true
calendarStyle Gets the CalendarStyle class to customize the UI CalendarStyle no CalendarStyle()
header Custom header instead of default header Widget Function(PageController, Month) no null
onChange When a day is clicked, it returns the values of that day void Function(OnChangeParam) YES

Properties for CalendarStyle

Property Description Type Required Default value
weekendStyle Style text of holidays TextStyle no null
weekdayStyle Text style of days of the week TextStyle no null
textWeekdayStyle Weekday text style TextStyle no TextStyle(color: Colors.black)
direction Left to right and right to left calendar TextDirection no TextDirection.ltr
textWeekdayAngle Amount of weekday tax rotation double no 0.7
todayColor Today's color Color no Color.fromARGB(255, 70, 39, 156),
todayStyle Today's text style TextStyle no null
taskColor Task color under the days Color no Colors.greenAccent
selectDayWidth The thickness of the circle around the selected day double no 1.2
persianText Use of Persian text bool no false
scrollDirection Movement model between pages Axis no null
animationDuration Duration animation of moving between pages Duration no null
animationCurve Type of animation to move between pages Curve no null
selectDayColor The color of the circle around the selected day Color no null
weekdaysText List of text days of the week List no ["Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat"]

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

カテゴリー

依存関係

依存関係一覧 5 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。