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. Color? customBookmarksColor(
    1. AyahModel
    )?,
  12. Widget? circularProgressWidget,
  13. DownloadFontsDialogStyle? downloadFontsDialogStyle,
  14. bool isDark = false,
  15. String? appLanguageCode,
  16. void onAyahLongPress(
    1. LongPressStartDetails details,
    2. AyahModel ayah
    )?,
  17. dynamic onPageChanged(
    1. int pageNumber
    )?,
  18. VoidCallback? onPagePress,
  19. void onSurahBannerPress(
    1. SurahNamesModel surah
    )?,
  20. int pageIndex = 0,
  21. bool showAyahBookmarkedIcon = true,
  22. SurahInfoStyle? surahInfoStyle,
  23. SurahNameStyle? surahNameStyle,
  24. int? surahNumber,
  25. Color? textColor,
  26. List<Color?>? singleAyahTextColors,
  27. bool useDefaultAppBar = true,
  28. bool withPageView = true,
  29. bool? isFontsLocal = false,
  30. String? fontsName = '',
  31. List<int>? ayahBookmarked = const [],
  32. bool isAyahBookmarked(
    1. AyahModel ayah
    )?,
  33. AyahAudioStyle? ayahStyle,
  34. SurahAudioStyle? surahStyle,
  35. bool? isShowAudioSlider = true,
  36. String? appIconPathForPlayAudioInBackground,
  37. QuranTopBarStyle? topBarStyle,
  38. TajweedMenuStyle? tajweedMenuStyle,
  39. IndexTabStyle? indexTabStyle,
  40. SearchTabStyle? searchTabStyle,
  41. BookmarksTabStyle? bookmarksTabStyle,
  42. AyahMenuStyle? ayahMenuStyle,
  43. SnackBarStyle? snackBarStyle,
  44. TafsirStyle? tafsirStyle,
  45. AyahDownloadManagerStyle? ayahDownloadManagerStyle,
  46. required BuildContext parentContext,
  47. TopBottomQuranStyle? topBottomQuranStyle,
  48. bool? isShowTabBar = true,
  49. bool enableWordSelection = true,
  50. DisplayModeBarStyle? displayModeBarStyle,
  51. AyahTafsirInlineStyle? ayahTafsirInlineStyle,
  52. QuranTafsirSideStyle? quranTafsirSideStyle,
  53. WordInfoBottomSheetStyle? wordInfoBottomSheetStyle,
  54. bool? isShowDisplayModeBar = true,
  55. AutoScrollStyle? autoScrollStyle,
})

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.customBookmarksColor,
  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,
  this.wordInfoBottomSheetStyle,
  this.isShowDisplayModeBar = true,
  this.autoScrollStyle,
});