QuranLibraryScreen constructor
const
QuranLibraryScreen({
- Key? key,
- PreferredSizeWidget? appBar,
- Color? ayahIconColor,
- Color? ayahSelectedBackgroundColor,
- Color? ayahSelectedFontColor,
- BannerStyle? bannerStyle,
- BasmalaStyle? basmalaStyle,
- Color? backgroundColor,
- List bookmarkList = const [],
- Color? bookmarksColor,
- Widget? circularProgressWidget,
- DownloadFontsDialogStyle? downloadFontsDialogStyle,
- bool isDark = false,
- @Deprecated('In versions after 2.2.5 this parameter will be removed. Please use juzName in TopBottomQuranStyle instead.') String? juzName,
- String? appLanguageCode,
- void onAyahLongPress(
- LongPressStartDetails details,
- AyahModel ayah
- dynamic onPageChanged(
- int pageNumber
- VoidCallback? onPagePress,
- void onSurahBannerPress(
- SurahNamesModel surah
- int pageIndex = 0,
- @Deprecated('In versions after 2.2.5 this parameter will be removed. Please use sajdaName in TopBottomQuranStyle instead.') String? sajdaName,
- bool showAyahBookmarkedIcon = true,
- SurahInfoStyle? surahInfoStyle,
- SurahNameStyle? surahNameStyle,
- int? surahNumber,
- Color? textColor,
- List<
Color?> ? singleAyahTextColors, - @Deprecated('In versions after 2.2.5 this parameter will be removed. Please use topTitleChild in TopBottomQuranStyle instead.') Widget? topTitleChild,
- bool useDefaultAppBar = true,
- bool withPageView = true,
- bool? isFontsLocal = false,
- String? fontsName = '',
- List<
int> ? ayahBookmarked = const [], - @Deprecated('In versions after 2.2.5 this parameter will be removed. Please use customMenuItems in AyahMenuStyle instead.') Widget? anotherMenuChild,
- @Deprecated('In versions after 2.2.5 this parameter will be removed. Please use customMenuItems in AyahMenuStyle instead.') void anotherMenuChildOnTap(
- AyahModel ayah
- @Deprecated('In versions after 2.2.5 this parameter will be removed. Please use customMenuItems in AyahMenuStyle instead.') Widget? secondMenuChild,
- @Deprecated('In versions after 2.2.5 this parameter will be removed. Please use customMenuItems in AyahMenuStyle instead.') void secondMenuChildOnTap(
- AyahModel ayah
- AyahAudioStyle? ayahStyle,
- SurahAudioStyle? surahStyle,
- bool? isShowAudioSlider = true,
- String? appIconPathForPlayAudioInBackground,
- QuranTopBarStyle? topBarStyle,
- IndexTabStyle? indexTabStyle,
- SearchTabStyle? searchTabStyle,
- BookmarksTabStyle? bookmarksTabStyle,
- AyahMenuStyle? ayahMenuStyle,
- SnackBarStyle? snackBarStyle,
- TafsirStyle? tafsirStyle,
- AyahDownloadManagerStyle? ayahDownloadManagerStyle,
- required BuildContext parentContext,
- 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,
});