搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目

暂无相关数据。