quran_pages_with_ayah_detector 0.1.2
quran_pages_with_ayah_detector: ^0.1.2 copied to clipboard
A Flutter package to show Quran pages with tap-detectable ayahs.
Quran Pages with Ayah Detector #
A Flutter package that shows Quran pages and allows detecting ayah taps.
Important Installations #
Install Quran Images using this Executable Command. Example: pageImagePath: "asset/pages/", INCLUDE ONLY THE PATH TO ALL IMAGES.
dart run quran_pages_with_ayah_detector:quran_pages_cli fetch-pages
This command will install QuranPages to your assets/pages/ automatically and will do important modifications to your pubspec.yaml to have the assets imported and ready to use for the package.
Usage #
QuranPageView(
pathImagePath: "assets/pages/", // Default but can be modified based on images path
// ~optional parameters for ui customization
onAyahTap: (sura, ayah, page) {
// Custom logic when an ayah is tapped
},
)