FLUTTER ECOSYSTEM

maxzod/alquran_cloud

maxzod/alquran_cloud open-source repository details.

alquran_cloud のプロジェクト画像
Stars
2
Forks
0
最終プッシュ(UTC)
2021/09/26
プロジェクト状態
公開中
Ahmed Masoud  GitHub avatar
GITHUB User

Ahmed Masoud ↗

jack of all trades is a master of SOME

@sitmenaMansoura , Egypt
言語Dart

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 4 件

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

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