quran_pages_with_ayah_detector 0.0.1 copy "quran_pages_with_ayah_detector: ^0.0.1" to clipboard
quran_pages_with_ayah_detector: ^0.0.1 copied to clipboard

A Flutter package to show Quran pages with tap-detectable ayahs.

example/main.dart

import 'dart:developer';

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

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: QuranPageView(
          //! ALL IMAGES IN "assets/pages/1.png~604.png"
          pageImagePath: "assets/pages/",
          onAyahTap: (sura, ayah, pageNumber) {
            log("Sura: ${sura.toString()}");
            log("Ayah: ${ayah.toString()}");
            log("PageNumber: ${pageNumber.toString()}");
          },
        ),
      ),
    );
  }
}
11
likes
0
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to show Quran pages with tap-detectable ayahs.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, path

More

Packages that depend on quran_pages_with_ayah_detector