quran_library 1.3.2 copy "quran_library: ^1.3.2" to clipboard
quran_library: ^1.3.2 copied to clipboard

An integrated package for displaying the Holy Qur’an identical to the Medina Quran with the narration of Hafs on the authority of Asim.

example/lib/main.dart

// import 'package:device_preview/device_preview.dart';
import 'dart:developer';

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

Future<void> main() async {
  runApp(
    // DevicePreview(
    //   builder: (context) => const MyApp(),
    // ),
    const MyApp(),
  );

  await QuranLibrary().init();
  await QuranLibrary().initTafsir();
}

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      // useInheritedMediaQuery: true,
      // locale: DevicePreview.locale(context),
      // builder: DevicePreview.appBuilder,
      theme: ThemeData(
        primaryColor: Colors.blue,
        useMaterial3: false,
      ),
      home: Scaffold(
        // body: SurahDisplayScreen(
        //   surahNumber: 18,
        //   isDark: false,
        //   languageCode: 'ar',
        //   useDefaultAppBar: false,
        // ),
        body: QuranLibraryScreen(
          isDark: false,
          showAyahBookmarkedIcon: true,
          ayahIconColor: Color(0xffcdad80),
          // backgroundColor: Colors.white,
          // textColor: Colors.black,
          isFontsLocal: false,
          optimizeScrolling: true,
          anotherMenuChild:
              Icon(Icons.play_arrow_outlined, size: 28, color: Colors.grey),
          anotherMenuChildOnTap: (ayah) {
            log('Another Menu Child Tapped: ${ayah.ayahNumber}');
          },
        ),
      ),
    );
  }
}
50
likes
145
points
1.17k
downloads

Publisher

verified publisheralheekmahlib.com

Weekly Downloads

An integrated package for displaying the Holy Qur’an identical to the Medina Quran with the narration of Hafs on the authority of Asim.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

another_xlider, archive, dio, drift, flutter, flutter_screenutil, flutter_svg, get, get_storage, http, path, path_provider

More

Packages that depend on quran_library