v0.0.1
alquran_cloud
quran.cloud API용 비공식 Dart 클라이언트 래퍼, 성경인 코란을 사용합니다
29좋아요 3730일 다운로드140Pub 점수
AndroidiOSWebmacOSWindowsLinux
maxzod/alquran_cloud open-source repository details.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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); // الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ