搜索插件、代码仓与 APP 分类

插件详情v2.0.20

kosher_dart

一个用于计算犹太教时间(宗教律法时间)的 Dart 库,包括祈祷、安息日和其他犹太宗教习俗的天文时间。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
1.3万
喜欢数
24
Pub 分数
160

安装插件

flutter pub add kosher_dart

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Kosher Dart 是一个 Dart 库,旨在计算犹太教的 zmanim(宗教时间),用于祈祷、安息日和节日等宗教活动。它基于位置和日期提供精确的天文计算,支持传统的犹太时间计算方法。该库适用于需要精确计时以进行日常仪式和宗教事件的应用程序。可在所有主要平台上运行,包括移动设备、网页和桌面端。非常适合开发犹太历法或祈祷时间应用程序的开发者。

适合场景

  • 祈祷时间提醒
  • 安息日烛光点燃计算器
  • 犹太节日安排
  • 宗教应用集成
  • 基于日历的仪式规划

主要特点

  • 精确的哈拉赫时间计算
  • 对多种zmanim类型的支援
  • 基于位置的时间调整
  • 跨平台兼容性
  • 轻松集成到Flutter应用

适合对象

  • 犹太历应用程序
  • 精神健康工具
  • 宗教教育平台
  • 每日祈祷提醒应用
  • 犹太人遵守的移动应用

使用建议

  • 需要精确的地理坐标
  • 依赖于正确的日期输入
  • 可能需要为非希伯来语用户进行本地化
  • 结果因小组和自定义设置而异
  • 不适用于法律或官方教法裁决

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

kosher_dart API

This API for a specialized calendar that can calculate different astronomical times including sunrise and sunset and Jewish zmanim or religious times for prayers and other Jewish religious dutuies. This API Translated KosherJava Zmanim API from JAVA to Dart language.

License

The library is released under the LGPL 2.1 license.

Getting Started

Add this to your package's pubspec.yaml file:

dependencies:
  kosher_dart: ^2.0.20

Usage

Import the package

To use this plugin, follow the plugin installation instructions.

Use the plugin

Add the following import to your Dart code:

import 'package:kosher_dart/kosher_dart.dart';
Get Hebrew date
  JewishDate jewishDate = JewishDate();
  HebrewDateFormatter hebrewDateFormatter = HebrewDateFormatter();
  hebrewDateFormatter.hebrewFormat = true; // optional
  hebrewDateFormatter.useGershGershayim = true; // optional
  String hebrewDate = hebrewDateFormatter.format(jewishDate);
Get jewish holiday
  JewishCalendar jewishCalendar = JewishCalendar();
  HebrewDateFormatter hebrewDateFormatter = HebrewDateFormatter();
  
  jewishCalendar.inIsrael = true; // set to true if your location is in israel
  hebrewDateFormatter.hebrewFormat = true; // optional
  hebrewDateFormatter.useGershGershayim = true; // optional
  
  String yomTov = hebrewDateFormatter.formatYomTov(jewishCalendar);
Get time of the day
  GeoLocation geoLocation = GeoLocation.setLocation(
        'Jerusalem', 31.7962419, 35.2453988, DateTime.now());
    ComplexZmanimCalendar complexZmanimCalendar = ComplexZmanimCalendar.intGeoLocation(geoLocation);
    DateTime? sofZmanTfila = complexZmanimCalendar.getSofZmanTfilaGRA();
    DateTime? minchaKetana = complexZmanimCalendar.getMinchaKetana();

所属分类

依赖

依赖清单 3 项

源码仓库

使用此插件的项目

暂无相关数据。