QuranLibraryScreen class
A widget that displays the Quran library screen.
This screen is used to display the Quran library, which includes the text of the Quran, bookmarks, and other relevant information.
The screen is customizable, with options to set the app bar, ayah icon color, ayah selected background color, banner style, basmala style, background color, bookmarks color, circular progress widget, download fonts dialog style, and language code.
The screen also provides a callback for when the default ayah is long pressed.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- QuranLibraryScreen
- Available extensions
Constructors
-
QuranLibraryScreen.new({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, String? juzName, String? languageCode = 'ar', void onAyahLongPress(LongPressStartDetails details, AyahModel ayah)?, dynamic onPageChanged(int pageNumber)?, VoidCallback? onPagePress, void onSurahBannerPress(SurahNamesModel surah)?, int pageIndex = 0, String? sajdaName, bool showAyahBookmarkedIcon = true, SurahInfoStyle? surahInfoStyle, SurahNameStyle? surahNameStyle, int? surahNumber, Color? textColor, List<
Color?> ? singleAyahTextColors, Widget? topTitleChild, bool useDefaultAppBar = true, bool withPageView = true, bool? isFontsLocal = false, String? fontsName = '', List<int> ? ayahBookmarked = const [], Widget? anotherMenuChild, void anotherMenuChildOnTap(AyahModel ayah)?, Widget? secondMenuChild, void secondMenuChildOnTap(AyahModel ayah)?, AyahAudioStyle? ayahStyle, SurahAudioStyle? surahStyle, bool? isShowAudioSlider = true, String? appIconUrlForPlayAudioInBackground, QuranTopBarStyle? topBarStyle, required BuildContext parentContext}) -
Creates a new instance of QuranLibraryScreen.
const
Properties
- anotherMenuChild → Widget?
-
زر إضافي أول لقائمة خيارات الآية - يمكن إضافة أيقونة أو نص مخصص anotherMenuChild
final
- anotherMenuChildOnTap → void Function(AyahModel ayah)?
-
دالة يتم استدعاؤها عند الضغط على الزر الإضافي الأول في قائمة خيارات الآية anotherMenuChildOnTap
final
- appBar → PreferredSizeWidget?
-
إذا قمت بإضافة شريط التطبيقات هنا فإنه سيحل محل شريط التطبيقات الافتراضية appBar
final
- appIconUrlForPlayAudioInBackground → String?
-
رابط أيقونة التطبيق للمشغل الصوتي / App icon URL for audio player
appIconUrlForPlayAudioInBackground يمكن تمرير رابط مخصص لأيقونة التطبيق في المشغل الصوتي
appIconUrlForPlayAudioInBackground You can pass a custom URL for the app icon in the audio player
final
-
ayahBookmarked
→ List<
int> ? -
قم بتمرير قائمة الآيات المحفوظة ayahBookmarked
final
- ayahIconColor → Color?
-
يمكنك تمرير لون لأيقونة الآية ayahIconColor
final
- ayahSelectedBackgroundColor → Color?
-
يمكنك تمرير لون خلفية الآية المحدد ayahSelectedBackgroundColor
final
- ayahSelectedFontColor → Color?
-
final
- ayahStyle → AyahAudioStyle?
-
نمط تخصيص مظهر المشغل الصوتي للآيات - يتحكم في الألوان والخطوط والأيقونات ayahStyle
final
- backgroundColor → Color?
-
إذا كنت تريد تغيير لون خلفية صفحة القرآن backgroundColor
final
-
تغيير نمط الشعار من خلال هذه الفئة BannerStyle
final
- basmalaStyle → BasmalaStyle?
-
تغيير نمط البسملة بواسطة هذه الفئة BasmalaStyle
final
- bookmarkList → List
-
إذا كنت تريد إضافة قائمة إشارات مرجعية خاصة، فقط قم بتمريرها لـ bookmarkList
final
- bookmarksColor → Color?
-
تغيير لون الإشارة المرجعية (اختياري) bookmarksColor
final
- circularProgressWidget → Widget?
-
إذا كنت تريد إضافة ويدجت بدلًا من الويدجت الإفتراضية circularProgressWidget
final
- downloadFontsDialogStyle → DownloadFontsDialogStyle?
-
تغيير نمط نافذة تحميل الخطوط بواسطة هذه الفئة DownloadFontsDialogStyle
final
- fontsName → String?
-
قم بتمرير إسم الخط الموجود في التطبيق لكي تستطيع إستخدامه fontsName
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDark → bool
-
قم بتمكين هذا المتغير إذا كنت تريد عرض القرآن في النمط المظلم isDark
final
- isFontsLocal → bool?
-
إذا كنت تريد استخدام خطوط موجودة مسبقًا في التطبيق، اجعل هذا المتغيير true isFontsLocal
final
- isShowAudioSlider → bool?
-
إظهار أو إخفاء سلايدر التحكم في الصوت السفلي isShowAudioSlider
final
- juzName → String?
-
إذا كنت تريد تغيير كلمة "الجزء" إلى كلمة أخرى أو ترجمتها فقط قم بتمريرها لـ juzName
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- languageCode → String?
-
إذا كنت تريد تمرير كود اللغة الخاصة بالتطبيق لتغيير الأرقام على حسب اللغة،
:رمز اللغة الإفتراضي هو 'ar' languageCode
final
- onAyahLongPress → void Function(LongPressStartDetails details, AyahModel ayah)?
-
تُستخدم مع الخطوط المحملة * عند الضغط المطوّل على أي آية باستخدام الخطوط المحملة، يمكنك تفعيل ميزات إضافية مثل نسخ الآية أو مشاركتها وغير ذلك عبر onAyahLongPress.
Used with loaded fonts * When long-pressing on any verse with the loaded fonts, you can enable additional features such as copying the verse, sharing it, and more using onAyahLongPress.
final - onPageChanged → dynamic Function(int pageNumber)?
-
إذا تم توفيره فسيتم استدعاؤه عند تغيير صفحة القرآن onPageChanged
final
- onPagePress → VoidCallback?
-
عند الضغط على الصفحة يمكنك إضافة بعض المميزات مثل حذف التظليل عن الآية وغيرها onPagePress
final
- onSurahBannerPress → void Function(SurahNamesModel surah)?
-
تُستخدم مع الخطوط المحملة * عند الضغط على أي لافتة سورة باستخدام الخطوط المحملة، يمكنك إضافة بعض التفاصيل حول السورة onSurahBannerPress
Used with loaded fonts * onSurahBannerPress When you press on any Surah banner with the loaded fonts, you can add some details about the surah
final - pageIndex → int
-
قم بتمرير رقم الصفحة إذا كنت لا تريد عرض القرآن باستخدام PageView pageIndex
final
- parentContext → BuildContext
-
السياق المطلوب من المستخدم لإدارة العمليات الداخلية للمكتبة parentContext
مثل الوصول إلى MediaQuery، Theme، والتنقل بين الصفحات
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sajdaName → String?
-
إذا كنت تريد تغيير كلمة "سجدة" إلى كلمة أخرى أو ترجمتها فقط قم بتمريرها لـ sajdaName
final
- secondMenuChild → Widget?
-
زر إضافي ثاني لقائمة خيارات الآية - يمكن إضافة أيقونة أو نص مخصص secondMenuChild
final
- secondMenuChildOnTap → void Function(AyahModel ayah)?
-
دالة يتم استدعاؤها عند الضغط على الزر الإضافي الثاني في قائمة خيارات الآية secondMenuChildOnTap
final
- showAyahBookmarkedIcon → bool
-
يمكنك تمكين أو تعطيل عرض أيقونة الإشارة المرجعية للآية showAyahBookmarkedIcon
final
-
singleAyahTextColors
→ List<
Color?> ? -
final
- surahInfoStyle → SurahInfoStyle?
-
تغيير نمط معلومات السورة بواسطة هذه الفئة SurahInfoStyle
final
- surahNameStyle → SurahNameStyle?
-
تغيير نمط اسم السورة بهذه الفئة SurahNameStyle
final
- surahNumber → int?
-
يمكنك تمرير رقم السورة surahNumber
final
- surahStyle → SurahAudioStyle?
-
نمط تخصيص مظهر المشغل الصوتي للسور - يتحكم في الألوان والخطوط والأيقونات surahStyle
final
- textColor → Color?
-
يمكنك تمرير لون نص القرآن textColor
final
- topBarStyle → QuranTopBarStyle?
-
تخصيص نمط شريط الأعلى الخاص بالمصحف
final
- topTitleChild → Widget?
-
إذا كنت تريد إضافة ويدجت بجانب اسم السورة topTitleChild
final
- useDefaultAppBar → bool
-
متغير لتعطيل أو تمكين شريط التطبيقات الافتراضية useDefaultAppBar
final
- withPageView → bool
-
قم بتمكين هذا المتغير إذا كنت تريد عرض القرآن باستخدام PageView withPageView
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
fontSizeDropDown(
{double? height, Color? color, bool isDark = false, TafsirStyle? tafsirStyle}) → Widget -
Available on Widget, provided by the FontSizeExtension extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showSajda(
BuildContext context, int pageIndex, String sajdaName) → Widget -
Available on Widget, provided by the SajdaExtension extension
Displays a Sajda widget. -
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited