alfurqan 0.0.1 copy "alfurqan: ^0.0.1" to clipboard
alfurqan: ^0.0.1 copied to clipboard

Al Quran verses, translations, juzs and chapters. Offline.

Al Quran #

Al Quran verses, translations, juzs and chapters. Offline ๐ŸŽ‰.

Features #

  • Offline ๐Ÿš€. Use it locally, not need to fetch from internet. Source from Quran Foundation.
  • Multiple verse text mode available (indopak, uthmani, uthmanyTajweed, and imlaei).
  • Chapter translated names (๐Ÿ‡ฎ๐Ÿ‡ฉ, ๐Ÿ‡ฌ๐Ÿ‡ง, ๐Ÿ‡ธ๐Ÿ‡ฆ, ๐Ÿ‡น๐Ÿ‡ท, ๐Ÿ‡ซ๐Ÿ‡ท)
  • Chapter revelations
  • Verse translations
    • ๐Ÿ‡ฎ๐Ÿ‡ฉ: Indonesian Islamic Affairs Ministry
    • ๐Ÿ‡ฌ๐Ÿ‡ง: MAS Abdel Haleem
    • ๐Ÿ‡น๐Ÿ‡ท: Dar Al-Salam Center
    • ๐Ÿ‡ซ๐Ÿ‡ท: Montada Islamic Foundation
  • Generate URL for Audio and Image. Based on Islamic Network.

Install #

  1. Add alquran as a dependency in your pubspec.yaml.

    dependencies:
      alquran: any
    
  2. Install it

    flutter pub get
    
  3. And import it

    import 'package:alfurqan/alfurqan.dart';
    

Usage #

  • Basmallah

    final basmallah = AlQuran.basmallah;
    print(basmallah); // ุจูุณู’ู…ู ูฑู„ู„ู‘ูŽู‡ู ูฑู„ุฑู‘ูŽุญู’ู…ูŽู€ูฐู†ู ูฑู„ุฑู‘ูŽุญููŠู…ู
    
  • Total Juz

    final totalJuz = AlQuran.totalJuz;
    print(totalJuz); // 30
    
  • Total Chapter

    final totalChapter = AlQuran.totalChapter;
    print(totalChapter); // 114
    
  • Total Madani

    final totalMadani = AlQuran.totalMadaniSurah;
    print(totalMadani); // 28
    
  • Total Makki

    final totalMakki = AlQuran.totalMakkiSurah;
    print(totalMakki); // 86
    
  • Total Verse

    final totalVerse = AlQuran.totalVerse;
    print(totalVerse); // 6236
    
  • Juz

    final juz = AlQuran.getJuz(1, 1);
    print(juz);
    // Juz(
    //   verse: JuzVerse(
    //     first: 1,
    //     last: 148,
    //     count: 148,
    //     items: {
    //       1: 1-7,
    //       2: 1-141
    //     }
    //   ),
    //   id: 1,
    //   number: 1
    // )
    
  • Chapter

    final chapter = AlQuran.getChapter(1);
    print(chapter);
    // Chapter(
    //   id: 1,
    //   bismillahPre: false,
    //   nameArabic: "ุงู„ูุงุชุญุฉ",
    //   nameComplex: "Al-Fฤtiฤฅah",
    //   nameSimple: "Al-Fatihah",
    //   pages: [1, 1],
    //   revelationOrder: 5,
    //   revelationPlace: ChapterRevelationPlace.makkah,
    //   translatedName: {
    //     id: "Pembukaan",
    //     en: "The Opener",
    //     ar: "ุณูˆุฑุฉ ุงู„ูุงุชุญุฉ",
    //     tr: "Fรขtiha",
    //     fr: "Louverture"
    //   },
    //   versesCount: 7
    // )
    
  • Verse

    final verse = AlQuran.getVerse(1, 1);
    print(verse);
    // Verse(
    //   id: 1,
    //   verseKey: "1:1",
    //   text: "ุจูุณู’ู…ู ูฑู„ู„ู‘ูŽู‡ู ูฑู„ุฑู‘ูŽุญู’ู…ูŽู€ูฐู†ู ูฑู„ุฑู‘ูŽุญููŠู…ู",
    //   chapterID: 1,
    //   pageNumber: 1,
    //   juzNumber: 1
    // );
    
    // With Mode. Available indopak, uthmani, uthmanyTajweed, and imlaei.
    final verseWithMode = AlQuran.getVerse(
      1,
      1,
      mode: VerseMode.uthmani,
    );
    print(verseWithMode);
    // Verse(
    //   id: 1,
    //   verseKey: "1:1",
    //   text: "ุจูุณู’ู…ู ูฑู„ู„ู‘ูŽู‡ู ูฑู„ุฑู‘ูŽุญู’ู…ูŽู€ูฐู†ู ูฑู„ุฑู‘ูŽุญููŠู…ู",
    //   chapterID: 1,
    //   pageNumber: 1,
    //   juzNumber: 1,
    // )
    
  • Translation

    final translation = AlQuran.getTranslation(
        TranslationType.idIndonesianIslamicAffairsMinistry, "1:1");
    print(translation);
    // VerseTranslation(
    //   id: 181444,
    //   verseKey: "1:1",
    //   text: "Dengan nama Allah Yang Maha Pengasih, Maha Penyayang.",
    //   resourceID: 33,
    //   languageName: "indonesian"
    // )
    
  • Chapter Audio URL

    final chapterAudio = AlQuran.getAudioURLByChapter(1);
    print(chapterAudio); // https://cdn.islamic.network/quran/audio-surah/128/ar.alafasy/1.mp3
    
    // With Edition
    final chapterAudioWithEdition = AlQuran.getAudioURLByChapter(
      1,
      edition: AudioEdition.ar_husary,
    );
    print(chapterAudioWithEdition); // https://cdn.islamic.network/quran/audio-surah/128/ar.husary/1.mp3
    
  • Verse Audio URL

    final verseAudio = AlQuran.getAudioURLByVerse(1);
    print(verseAudio); // https://cdn.islamic.network/quran/audio/128/ar.alafasy/1.mp3
    
    // With Edition
    final verseAudioWithEdition = AlQuran.getAudioURLByVerse(1,
        edition: AudioEdition.ar_husary);
    print(verseAudioWithEdition); // https://cdn.islamic.network/quran/audio/128/ar.husary/1.mp3
    
  • Verse Image URL

    final imageUrl = AlQuran.getImageURLByVerse("1:1");
    print(imageUrl); // https://cdn.islamic.network/quran/images/1_1.png
    
    // With high quality
    final imageUrlHighQuality = AlQuran.getImageURLByVerse("1:1", highQuality: true);
    print(imageUrlHighQuality); // https://cdn.islamic.network/quran/images/high-resolution/1_1.png
    
1
likes
0
points
68
downloads

Publisher

verified publisherariefsn.dev

Weekly Downloads

Al Quran verses, translations, juzs and chapters. Offline.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, freezed_annotation, json_annotation

More

Packages that depend on alfurqan