搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。