A Flutter package that provides utility functions to retrieve information from the Quran, such as surahs, ayahs, and other related data.
- 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.
Add the following line to your pubspec.yaml
file:
dependencies:
quran_sharif: <latest_version>
Then run flutter pub get
to fetch the package.
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.
You can find more usage examples in the example folder of this repository.
The API documentation for this package can be found Api Documentation.
This project is licensed under the MIT License.
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
This package is authored and maintained by zaid.digital.
If you have any questions, feel free to reach out:
- Email: ashrafchauhan567@gmail.com
- Githube: @MohamedAshraf701