al_quran

Creator: coderz1093

Last updated:

Add to Cart

Description:

al quran

ওয়াল কুরআ-নিল হাকীম - وَٱلْقُرْءَانِ ٱلْحَكِيم #
A simple Quran package for flutter with arabic text, english translation, bangla language and pronunciation.
Also available audio link, revelation type and other information.
Platform Support



Android
iOS
Linux
MacOS
Web
Windows













Inspiration From

Quranil Hakim
Quran package

Reference
Full quran  ⬥ 
Sajdah  ⬥ 
Juz data, Page data  ⬥ 
Word count, Letter count ...
Getting Started #
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:
...
al_quran: ^0.1.1+5
copied to clipboard
Import it:
import 'package:al_quran/al_quran.dart';
copied to clipboard
Usage Examples #
// just call AlQuran object and access all properties
// NB: use a arabic font if text not show properly

Text("Total Surah: ${AlQuran.quranDetails.count.surah}"),
copied to clipboard
For more details, Please visit Example
Objects #
you can convert any model to map
it will return a Map<String, dynamic>
Ex: [Model Name].toJson();
Surah Basic Info
class SurahBasicInfo {
// surah number
final int number;

// surah name in arabic
final String name;

// surah name in english
final String englishName;

// surah name translation in english
final String englishNameTranslation;

// revelationType will Meccan or Medinan
final RevelationType revelationType;

// total verse or ayat in surah
final int verse;

// total words in surah
final int words;

// total char or letters in surah
final int chars;
}
copied to clipboard
Surah
class Surah {
// surah number
final int number;

// surah name in arabic
final String name;

// surah name in english
final String englishName;

// surah name translation in english
final String englishNameTranslation;

// revelationType will Meccan or Medinan
final RevelationType revelationType;

// total verse or ayat in surah
final int verse;

// total words in surah
final int words;

// total char or letters in surah
final int chars;

// list of ayat / verse
final List<Ayat> ayahs;
}
copied to clipboard
Ayat / Verse
class Ayat {
// number of ayat / verse on full quran
final int number;

// audio link
// it collect form online. so sometime it will not work
final String audio;

// different server audio link
// it collect form online. so sometime it will not work
final List<String> audioSecondary;

// text in arabic
final String text;

// bangla translation
final String translateBn;

// verse / ayat number of surah
final int numberInSurah;

// juz / para number
final int juz;

// manzil
final int manzil;

// page number which contains current verse / ayat
final int page;

// ruku
final int ruku;

// hizbQuarter
final int hizbQuarter;

// sajdah returns [false or object]
final dynamic sajdah;

// bangla pronunciation
final String pronunciationBn;

// full verse / ayat text separate with words in arabic
final String wordsArabic;

// full verse / ayat translation separate with words in bangla
final String wordsBangla;
}
copied to clipboard
Sajdah
class Sajdah {
// count of verse / ayat [1 - 15]
final int id;

final bool recommended;

final bool obligatory;
}
copied to clipboard
How to use
AlQuran.[FEATURES].[AVAILABLE PROPERTIES].[PROPERTIES]

/// convert any digit in bangla or arabic

// english 123 to bangla ১২৩
Text(123.bn)

// english 123 to arabic ١٢٣
Text(123.ar)
copied to clipboard
|―――――――――――――――|―――――――――――――――――――――――――――――――――――|―――――――――――――――――――――――――――――――――――|――――――――――――――――――――――――|
| FEATURES | AVAILABLE PROPERTIES | PROPERTIES | RETURN TYPE |
|===============|===================================|===================================|========================|
| getBismillah | ar | | String |
| | bn | | String |
| | unicode | | String |
|---------------|-----------------------------------|-----------------------------------|------------------------|
| quranDetails | getFullQuran | | List<Surah> |
| |-----------------------------------|-----------------------------------|------------------------|
| | getAllSurahBasicInfo | | List<SurahBasicInfo> |
| |-----------------------------------|-----------------------------------|------------------------|
| | getFullJuz | bySurah | List<List<Surah>> |
| | | byVerse | List<List<Ayat>> |
| |-----------------------------------|-----------------------------------|------------------------|
| | getAllSajdahVerse | bySurah | List<Surah> |
| | | byVerse | List<Ayat> |
| |-----------------------------------|-----------------------------------|------------------------|
| | getAllVerseByRuku | | List<List<Ayat>> |
| |-----------------------------------|-----------------------------------|------------------------|
| | count | surah | int |
| | | para / juz | int |
| | | makkiSurah | int |
| | | madaniSurah | int |
| | | verseOfSajdah / ayatOfSajdah | int |
| | | ruku | int |
| | | ayat / verse | int |
| | | page | int |
| | | words | int |
| | | surahOnPage(int pageNumber) | int |
| | | verseOnPage(int pageNumber) | int |
|---------------|-----------------------------------|-----------------------------------|------------------------|
| surahDetails | byName | | Surah |
| | bySurahNumber(int surahNumber) | | Surah |
| | byJuzNumber(int juzNumber) | | List<Surah> |
| | byVerseNumber(int verseNumber) | | Surah |
| | byPageNumber(int pageNumber) | | List<Surah> |
|---------------|-----------------------------------|-----------------------------------|------------------------|
copied to clipboard
Request for this package user #
If you found any error or bug please report an issue or send me an eMail ASAP.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.