v0.0.5islamic_hijri_calendar
伊斯蘭希吉拉曆日曆小部件以阿拉伯文和英文數字顯示日期,顯示希吉拉月份名稱和年份,並支援輕鬆的月份導航。
44喜歡 64近 30 天下載160Pub 分數
AndroidiOSWebmacOSWindowsLinux
介紹我們的伊斯蘭希吉拉曆法小工具,提供完整的日期顯示,同時支援阿拉伯數字與英文字母數字。輕鬆查看希吉拉月份名稱及年份,並輕鬆瀏覽各個月份。
{"sdk":"flutter"}^0.20.2^8.0.2^6.0.0{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
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 contributorsAdd 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';
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
),
| 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 |
Made with ❤️ by the DevCodeSpace