quran_sharif 1.0.0 copy "quran_sharif: ^1.0.0" to clipboard
quran_sharif: ^1.0.0 copied to clipboard

This Flutter package provides a comprehensive collection of the Quran in both English and Arabic translations.

Quran Sharif #

Pub Version Flutter Platform

A Flutter package that provides utility functions to retrieve information from the Quran, such as surahs, ayahs, and other related data.

Quran

Features #

  • Complete text of the Quran in English and Arabic
  • Support for switching between different translations
  • Beautifully formatted display with adjustable font sizes
  • Retrieve all surahs from the Quran.
  • Get a specific surah by ID.
  • Retrieve a list of surah names.
  • Filter surahs by revelation type.
  • Fetch ayahs by Juz ID.

Installation #

Add the following line to your pubspec.yaml file:

dependencies:
  quran_sharif: <latest_version>

Then run flutter pub get to fetch the package.

Usage #

Import the package into your Dart file:

import 'package:quran_sharif/quran_sharif.dart';

Use the provided methods to access the Quran data:

// Retrieve all surahs
List<Surahs> allSurahs = Quran.getAllSurah();

// Get surah by ID
Surahs? surah = Quran.getSurahById(id: 1);

// Get a list of surah names
List<String> surahNames = Quran.getSurahName();

// Filter surahs by revelation type
List<Surahs> makkiSurahs = Quran.getSurahByRevelationType(isMakki: true);

// Get ayahs by Juz ID
List<Ayahs> juzAyahs = Quran.getJuz(id: 1);

For more details on each method and its usage, refer to the API documentation.

Examples #

You can find more usage examples in the example folder of this repository.

API Documentation #

The API documentation for this package can be found Api Documentation.

License #

This project is licensed under the MIT License.

Contributing #

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

Author #

This package is authored and maintained by zaid.digital.

Get in touch #

If you have any questions, feel free to reach out:

14
likes
130
pub points
59%
popularity

Publisher

verified publisherzaid.digital

This Flutter package provides a comprehensive collection of the Quran in both English and Arabic translations.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on quran_sharif