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. @Deprecated('In versions after 2.2.5 this parameter will be removed. Please use juzName in TopBottomQuranStyle instead.') String? juzName,
  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. @Deprecated('In versions after 2.2.5 this parameter will be removed. Please use sajdaName in TopBottomQuranStyle instead.') String? sajdaName,
  22. bool showAyahBookmarkedIcon = true,
  23. SurahInfoStyle? surahInfoStyle,
  24. SurahNameStyle? surahNameStyle,
  25. int? surahNumber,
  26. Color? textColor,
  27. List<Color?>? singleAyahTextColors,
  28. @Deprecated('In versions after 2.2.5 this parameter will be removed. Please use topTitleChild in TopBottomQuranStyle instead.') Widget? topTitleChild,
  29. bool useDefaultAppBar = true,
  30. bool withPageView = true,
  31. bool? isFontsLocal = false,
  32. String? fontsName = '',
  33. List<int>? ayahBookmarked = const [],
  34. @Deprecated('In versions after 2.2.5 this parameter will be removed. Please use customMenuItems in AyahMenuStyle instead.') Widget? anotherMenuChild,
  35. @Deprecated('In versions after 2.2.5 this parameter will be removed. Please use customMenuItems in AyahMenuStyle instead.') void anotherMenuChildOnTap(
    1. AyahModel ayah
    )?,
  36. @Deprecated('In versions after 2.2.5 this parameter will be removed. Please use customMenuItems in AyahMenuStyle instead.') Widget? secondMenuChild,
  37. @Deprecated('In versions after 2.2.5 this parameter will be removed. Please use customMenuItems in AyahMenuStyle instead.') void secondMenuChildOnTap(
    1. AyahModel ayah
    )?,
  38. AyahAudioStyle? ayahStyle,
  39. SurahAudioStyle? surahStyle,
  40. bool? isShowAudioSlider = true,
  41. String? appIconPathForPlayAudioInBackground,
  42. QuranTopBarStyle? topBarStyle,
  43. IndexTabStyle? indexTabStyle,
  44. SearchTabStyle? searchTabStyle,
  45. BookmarksTabStyle? bookmarksTabStyle,
  46. AyahMenuStyle? ayahMenuStyle,
  47. SnackBarStyle? snackBarStyle,
  48. TafsirStyle? tafsirStyle,
  49. AyahDownloadManagerStyle? ayahDownloadManagerStyle,
  50. required BuildContext parentContext,
  51. TopBottomQuranStyle? topBottomQuranStyle,
})

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,
  @Deprecated(
      'In versions after 2.2.5 this parameter will be removed. Please use juzName in TopBottomQuranStyle instead.')
  this.juzName,
  this.appLanguageCode,
  this.onAyahLongPress,
  this.onPageChanged,
  this.onPagePress,
  this.onSurahBannerPress,
  this.pageIndex = 0,
  @Deprecated(
      'In versions after 2.2.5 this parameter will be removed. Please use sajdaName in TopBottomQuranStyle instead.')
  this.sajdaName,
  this.showAyahBookmarkedIcon = true,
  this.surahInfoStyle,
  this.surahNameStyle,
  this.surahNumber,
  this.textColor,
  this.singleAyahTextColors,
  @Deprecated(
      'In versions after 2.2.5 this parameter will be removed. Please use topTitleChild in TopBottomQuranStyle instead.')
  this.topTitleChild,
  this.useDefaultAppBar = true,
  this.withPageView = true,
  this.isFontsLocal = false,
  this.fontsName = '',
  this.ayahBookmarked = const [],
  @Deprecated(
      'In versions after 2.2.5 this parameter will be removed. Please use customMenuItems in AyahMenuStyle instead.')
  this.anotherMenuChild,
  @Deprecated(
      'In versions after 2.2.5 this parameter will be removed. Please use customMenuItems in AyahMenuStyle instead.')
  this.anotherMenuChildOnTap,
  @Deprecated(
      'In versions after 2.2.5 this parameter will be removed. Please use customMenuItems in AyahMenuStyle instead.')
  this.secondMenuChild,
  @Deprecated(
      'In versions after 2.2.5 this parameter will be removed. Please use customMenuItems in AyahMenuStyle instead.')
  this.secondMenuChildOnTap,
  this.ayahStyle,
  this.surahStyle,
  this.isShowAudioSlider = true,
  this.appIconPathForPlayAudioInBackground,
  this.topBarStyle,
  this.indexTabStyle,
  this.searchTabStyle,
  this.bookmarksTabStyle,
  this.ayahMenuStyle,
  this.snackBarStyle,
  this.tafsirStyle,
  this.ayahDownloadManagerStyle,
  required this.parentContext,
  this.topBottomQuranStyle,
});