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? juzName,
  15. String? languageCode = 'ar',
  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. String? sajdaName,
  22. bool showAyahBookmarkedIcon = true,
  23. SurahInfoStyle? surahInfoStyle,
  24. SurahNameStyle? surahNameStyle,
  25. int? surahNumber,
  26. Color? textColor,
  27. List<Color?>? singleAyahTextColors,
  28. Widget? topTitleChild,
  29. bool useDefaultAppBar = true,
  30. bool withPageView = true,
  31. bool? isFontsLocal = false,
  32. String? fontsName = '',
  33. List<int>? ayahBookmarked = const [],
  34. Widget? anotherMenuChild,
  35. void anotherMenuChildOnTap(
    1. AyahModel ayah
    )?,
  36. Widget? secondMenuChild,
  37. void secondMenuChildOnTap(
    1. AyahModel ayah
    )?,
  38. AyahAudioStyle? ayahStyle,
  39. SurahAudioStyle? surahStyle,
  40. bool? isShowAudioSlider = true,
  41. String? appIconUrlForPlayAudioInBackground,
  42. required BuildContext parentContext,
})

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.juzName,
  this.languageCode = 'ar',
  this.onAyahLongPress,
  this.onPageChanged,
  this.onPagePress,
  this.onSurahBannerPress,
  this.pageIndex = 0,
  this.sajdaName,
  this.showAyahBookmarkedIcon = true,
  this.surahInfoStyle,
  this.surahNameStyle,
  this.surahNumber,
  this.textColor,
  this.singleAyahTextColors,
  this.topTitleChild,
  this.useDefaultAppBar = true,
  this.withPageView = true,
  this.isFontsLocal = false,
  this.fontsName = '',
  this.ayahBookmarked = const [],
  this.anotherMenuChild,
  this.anotherMenuChildOnTap,
  this.secondMenuChild,
  this.secondMenuChildOnTap,
  this.ayahStyle,
  this.surahStyle,
  this.isShowAudioSlider = true,
  this.appIconUrlForPlayAudioInBackground,
  required this.parentContext,
});