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

套件詳情v0.0.1

alquran_cloud

quran.cloud API 的非官方 Dart 客戶端封裝,用於存取古蘭經聖書

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
96
喜歡數
29
Pub 分數
140

安裝套件

flutter pub add alquran_cloud

套件介紹

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

alquran_cloud 套件是 quran.cloud API 的非官方 Dart 客戶端封裝,讓開發者能輕鬆存取並使用聖書《古蘭經》的各種格式。它提供一個乾淨直覺的介面,可取得古蘭經經文、章節、翻譯以及塔夫西爾(註釋)。此套件專為跨平台使用設計,支援 Android、iOS、Web、macOS、Windows 與 Linux。該套件簡化了將古蘭經內容整合至需要古蘭經內容的 Flutter 應用程式中的過程,非常適合宗教、教育或虔誠類應用。

適用情境

  • 將古蘭經文本整合到行動應用程式中
  • 顯示翻譯和塔夫西爾
  • 建構《古蘭經》閱讀和學習工具
  • 建立多語言伊斯蘭教育應用程式
  • 透過快取啟用離線聖經閱讀

主要特色

  • 獲取古蘭經數據的簡單API
  • 支援多種翻譯和誦讀
  • 跨平台相容性
  • 內建錯誤處理
  • 輕量且易於整合

適合對象

  • Flutter 開發者建構伊斯蘭應用程式
  • 教育類應用程式創作者
  • 宗教內容平台
  • 需要準確古蘭經引用的應用程式
  • 使用 quran.cloud API 的開發人員

使用建議

  • 需要互聯網連接以取得即時資料
  • 受限於 quran.cloud API 提供的功能
  • Quran.cloud 的官方認可
  • 可能需要額外的邏輯來實現離線功能
  • 依賴外部API的穩定性

原始 README

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

Alquran Cloud

unofficial api wrapper for the free islamic api alquran.cloud usage

void main(List<String> args) async {
  /// to enable logs (disabled by default)
  quran_cloud.quranCloud.enableLogs = true;

  /// use edition identifer to determine which edition of the quran to get
  final allEditions = await quran_cloud.getAllEditions();

  /// also you can query the edition you want
  final editionsQuery = await quran_cloud.getAllEditions(
    format: 'text', // or `audio`
    language: 'ar', // use .getEditionSupportedLanguages(); to get the all available languages
    type: 'quran', // user .getEditionTypes() to get all available types
  );

  final quran = await quran_cloud.getQuranByEdition(allEditions.first);

  /// get surah by number and edition
  final surah = await quran_cloud.getSurahByEdition(1, editionsQuery.first);

  /// get aya by number and edition
  final aya = await quran_cloud.getAyaByNumber(2, editionsQuery.first);

  print(aya.text); // الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ

Endpoints

  • [x] Editions
  • [x] Quran
  • [x] Juz
  • [x] Surah
  • [x] Aya
  • [ ] Manzil
  • [ ] Ruku
  • [ ] Page
  • [ ] Hizb
  • [ ] Quarter
  • [ ] Sajda
  • [ ] Meta
  • [x] CDM (audio/image)

Features

  • [ ] cache (awaiting this PR https://github.com/hurshi/dio-http-cache/pull/84)
  • [ ] prayer times
  • [ ] docs
  • [ ] re-tray

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。