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

islamic_hijri_calendar 封面
套件詳情v0.0.5

islamic_hijri_calendar

伊斯蘭希吉拉曆日曆小部件以阿拉伯文和英文數字顯示日期,顯示希吉拉月份名稱和年份,並支援輕鬆的月份導航。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
56
喜歡數
44
Pub 分數
150

安裝套件

flutter pub add islamic_hijri_calendar

套件介紹

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

伊斯蘭希吉拉曆法套件提供一個可自訂的小工具,用於以阿拉伯數字和英文字母顯示伊斯蘭陰曆日期。它準確顯示希吉拉月份名稱與年份,支援阿拉伯語的雙向文字,並能順暢導航月份。適合針對穆斯林使用者或需整合伊斯蘭曆法之應用程式,可在所有主要平台(包含行動裝置、網頁及桌面)運作。此套件輕巧且易於實作,設定簡單。

適用情境

  • 伊斯蘭祈禱時間應用
  • 宗教活動安排
  • 穆斯林社群平台
  • 關於伊斯蘭文化的教育類應用程式
  • 基於日曆的伊斯蘭提醒

主要特色

  • 以阿拉伯語和英語顯示希吉拉日期
  • 支援雙向阿拉伯文字
  • 準確的希吉拉月份和年份標籤
  • 輕鬆瀏覽月份
  • 跨平台相容性
  • 可自訂的 UI

適合對象

  • 適用於穆斯林用戶的應用程式
  • 伊斯蘭教育工具
  • 文化或宗教應用
  • 國際日期顯示需要
  • 需要月曆支援的開發者

使用建議

  • 需要手動處理希吉拉曆日期計算
  • 僅限於視覺表示,不包含日期運算
  • 可能需要為非阿拉伯語使用者進行額外的本地化
  • 依賴準確的系統時間以正確顯示
  • 不適合複雜的日曆操作

原始 README

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

Introducing our Islamic Hijri Calendar widget, offering a comprehensive date display with both Arabic and English numerals. Easily view Hijri month names alongside the year and navigate through months effortlessly.

Dart Extensions Pro contributors

Features

  • Users can set only the English calendar or show it with the Hijri calendar.
  • Shows both english day & arabic day.
  • Shows the Hijri month names along with the year.
  • set custom font families manually & google font as well.
  • Support for both light and dark modes for better visibility and user preference.
  • Users can customize the colors to match their preferences or app theme.
  • Users can easily change the month and year to navigate through the calendar.

Getting started

Add dependency to your pubspec.yaml file & run Pub get

dependencies:
  islamic_hijri_calendar: ^0.0.5

And import package into your class file

import 'package:islamic_hijri_calendar/islamic_hijri_calendar.dart';

Usage

IslamicHijriCalendar(
   isHijriView: true, // allowing users to set either the English calendar only or display the Hijri calendar alongside the English calendar
   highlightBorder : Theme.of(context).colorScheme.primary, // Set selected date border color
   defaultBorder : Theme.of(context).colorScheme.onBackground.withValues(alpha:0.1), // Set default date border color
   highlightTextColor : Theme.of(context).colorScheme.background, // Set today date text color            
   defaultTextColor : Theme.of(context).colorScheme.onBackground, //Set others dates text color            
   defaultBackColor : Theme.of(context).colorScheme.background, // Set default date background color            
   adjustmentValue: 0, // Set islamic hijri calendar adjustment value which is set  by user side
   isGoogleFont: true, // Set it true if you want to use google fonts else false            
   fontFamilyName: "Lato", // Set your custom font family name or google font name
   getSelectedEnglishDate: (selectedDate){ // returns the date selected by user
     print("English Date : $selectedDate");
   },            
   getSelectedHijriDate: (selectedDate){ // returns the date selected by user in Hijri format
     print("Hijri Date : $selectedDate");
   },            
   isDisablePreviousNextMonthDates: true, // Set dates which are not included in current month should show disabled or enabled
),

Properties

Property Types Description
isHijriView bool? allowing users to set either the English calendar only or display the Hijri calendar alongside the English calendar
highlightBorder Color? Set selected date border color
defaultBorder Color? Set default date border color
highlightTextColor Color? Set today date text color
defaultTextColor Color? Set others dates text color
defaultBackColor Color? Set default date background color
adjustmentValue int Set hijri calendar adjustment value which is set by user side
isGoogleFont bool? Set it true if you want to use google fonts else false
fontFamilyName String? Set your custom font family name or google font name
getSelectedEnglishDate return selectedDate returns the date selected by user
getSelectedHijriDate return selectedDate returns the date selected by user in Hijri format
isDisablePreviousNextMonthDates bool? Set dates which are not included in current month should show disabled or enabled

Code Contributors

Dart Extensions Pro contributors

Made with ❤️ by the DevCodeSpace

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。