パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。