Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mohamedashraf701/quran_sharif

This Flutter package provides a comprehensive collection of the Quran in both English and Arabic translations.
https://github.com/mohamedashraf701/quran_sharif

Last synced: 13 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# Quran Sharif

[![Pub Version](https://img.shields.io/pub/v/quran_sharif.svg)](https://pub.dev/packages/quran_sharif)
![Flutter Platform](https://img.shields.io/badge/platform-flutter-yellow)

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

![Quran](https://github.com/MohamedAshraf701/quran_sharif/assets/92545354/43421462-c5e2-430d-8441-d9bfd47e9b67)

## 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:

```yaml
dependencies:
quran_sharif:
```

Then run `flutter pub get` to fetch the package.

## Usage

Import the package into your Dart file:

```dart
import 'package:quran_sharif/quran_sharif.dart';
```

Use the provided methods to access the Quran data:

```dart
// Retrieve all surahs
List allSurahs = Quran.getAllSurah();

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

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

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

// Get ayahs by Juz ID
List 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](https://github.com/MohamedAshraf701/quran_sharif/tree/main/example) folder of this repository.

## API Documentation

The API documentation for this package can be found [Api Documentation](https://pub.dev/documentation/quran_sharif/latest/quran_sharif/Quran-class.html).

## License

This project is licensed under the [MIT License](https://zaid.digital).

## 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](https://zaid.digital).

## Get in touch

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

- Email: [email protected]
- Githube: [@MohamedAshraf701](https://github.com/MohamedAshraf701)