QuranLibraryScreen constructor

const QuranLibraryScreen({
  1. Key? key,
  2. PreferredSizeWidget? appBar,
  3. Color? ayahIconColor,
  4. Color? ayahSelectedBackgroundColor,
  5. Color? ayahSelectedFontColor,
  6. BannerStyle? bannerStyle,
  7. BasmalaStyle? basmalaStyle,
  8. Color? backgroundColor,
  9. List bookmarkList = const [],
  10. Color? bookmarksColor,
  11. Widget? circularProgressWidget,
  12. DownloadFontsDialogStyle? downloadFontsDialogStyle,
  13. bool isDark = false,
  14. String? appLanguageCode,
  15. void onAyahLongPress(
    1. LongPressStartDetails details,
    2. AyahModel ayah
    )?,
  16. dynamic onPageChanged(
    1. int pageNumber
    )?,
  17. VoidCallback? onPagePress,
  18. void onSurahBannerPress(
    1. SurahNamesModel surah
    )?,
  19. int pageIndex = 0,
  20. bool showAyahBookmarkedIcon = true,
  21. SurahInfoStyle? surahInfoStyle,
  22. SurahNameStyle? surahNameStyle,
  23. int? surahNumber,
  24. Color? textColor,
  25. List<Color?>? singleAyahTextColors,
  26. bool useDefaultAppBar = true,
  27. bool withPageView = true,
  28. bool? isFontsLocal = false,
  29. String? fontsName = '',
  30. List<int>? ayahBookmarked = const [],
  31. bool isAyahBookmarked(
    1. AyahModel ayah
    )?,
  32. AyahAudioStyle? ayahStyle,
  33. SurahAudioStyle? surahStyle,
  34. bool? isShowAudioSlider = true,
  35. String? appIconPathForPlayAudioInBackground,
  36. QuranTopBarStyle? topBarStyle,
  37. TajweedMenuStyle? tajweedMenuStyle,
  38. IndexTabStyle? indexTabStyle,
  39. SearchTabStyle? searchTabStyle,
  40. BookmarksTabStyle? bookmarksTabStyle,
  41. AyahMenuStyle? ayahMenuStyle,
  42. SnackBarStyle? snackBarStyle,
  43. TafsirStyle? tafsirStyle,
  44. AyahDownloadManagerStyle? ayahDownloadManagerStyle,
  45. required BuildContext parentContext,
  46. TopBottomQuranStyle? topBottomQuranStyle,
  47. bool? isShowTabBar = true,
  48. bool enableWordSelection = true,
  49. DisplayModeBarStyle? displayModeBarStyle,
  50. AyahTafsirInlineStyle? ayahTafsirInlineStyle,
  51. QuranTafsirSideStyle? quranTafsirSideStyle,
})

Creates a new instance of QuranLibraryScreen.

This constructor is used to create a new instance of the QuranLibraryScreen widget.

Implementation

const QuranLibraryScreen({
  super.key,
  this.appBar,
  this.ayahIconColor,
  this.ayahSelectedBackgroundColor,
  this.ayahSelectedFontColor,
  this.bannerStyle,
  this.basmalaStyle,
  this.backgroundColor,
  this.bookmarkList = const [],
  this.bookmarksColor,
  this.circularProgressWidget,
  this.downloadFontsDialogStyle,
  this.isDark = false,
  this.appLanguageCode,
  this.onAyahLongPress,
  this.onPageChanged,
  this.onPagePress,
  this.onSurahBannerPress,
  this.pageIndex = 0,
  this.showAyahBookmarkedIcon = true,
  this.surahInfoStyle,
  this.surahNameStyle,
  this.surahNumber,
  this.textColor,
  this.singleAyahTextColors,
  this.useDefaultAppBar = true,
  this.withPageView = true,
  this.isFontsLocal = false,
  this.fontsName = '',
  this.ayahBookmarked = const [],
  this.isAyahBookmarked,
  this.ayahStyle,
  this.surahStyle,
  this.isShowAudioSlider = true,
  this.appIconPathForPlayAudioInBackground,
  this.topBarStyle,
  this.tajweedMenuStyle,
  this.indexTabStyle,
  this.searchTabStyle,
  this.bookmarksTabStyle,
  this.ayahMenuStyle,
  this.snackBarStyle,
  this.tafsirStyle,
  this.ayahDownloadManagerStyle,
  required this.parentContext,
  this.topBottomQuranStyle,
  this.isShowTabBar = true,
  this.enableWordSelection = true,
  this.displayModeBarStyle,
  this.ayahTafsirInlineStyle,
  this.quranTafsirSideStyle,
});