quran 0.0.7 copy "quran: ^0.0.7" to clipboard
quran: ^0.0.7 copied to clipboard

outdated

Full Quran text and Surah details including Surah Name, Aya Count, English title, Verse, Place of Revelation, Total Aya Count, Total Surah Count etc.

Full Quran text and Surah details

Getting Started #

To use this plugin, add quran as a dependency in your pubspec.yaml file.

Functions:

  • getSurahName(int surahNumber) - Get Surah Name by surah number
  • getSurahNameEnglish(int surahNumber) - Get Surah English Title by surah number
  • getAyaCount(int surahNumber) - Get Aya Count by surah number
  • getPlaceOfRevelation(int surahNumber) - Get Place of Revelation (Makkah / Madinah)
  • getVerse(int surahNumber, int verseNumber) - Get Verse (text) by surah number and verse number
  • getTotalAyaCount() - Get total aya count
  • getTotalSurahCount() - Get total surah count

Example #

example

import 'package:flutter/material.dart';
import 'package:quran/quran.dart';

void main(){
  runApp(MaterialApp(
    home: Scaffold(
      appBar: AppBar(
        title: Text("Quran Demo"),
      ),
      body: SafeArea(
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Text("Surah: ${getSurahName(1)}"),
            Text("English title: ${getSurahNameEnglish(1)}"),
            Text("Aya: ${getAyaCount(1)}"),
            Text("Place of Revelation: ${getPlaceOfRevelation(1)}"),
            Text("Verse 1: ${getVerse(1, 1)}")
          ],
        ),
      ),
    ),
  ));
}

example2

import 'package:flutter/material.dart';
import 'package:quran/quran.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      appBar: AppBar(
        title: Text("Quran Demo"),
      ),
      body: SafeArea(
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Text("Surah: ${getSurahName(1)}"),
            Text("English title: ${getSurahNameEnglish(1)}"),
            Text("Aya: ${getAyaCount(1)}"),
            Text("Place of Revelation: ${getPlaceOfRevelation(1)}"),
            Text("Verses: "),
            Expanded(
              child: ListView.builder(
                itemCount: getAyaCount(1),
                itemBuilder: (context, index) {
                  return Text("${index+1}. ${getVerse(1, index + 1)}");
                },
              ),
            ),
          ],
        ),
      ),
    ),
  ));
}
224
likes
0
pub points
91%
popularity

Publisher

verified publisheraqeelshamz.com

Full Quran text and Surah details including Surah Name, Aya Count, English title, Verse, Place of Revelation, Total Aya Count, Total Surah Count etc.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on quran