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, BannerStyle? bannerStyle, BasmalaStyle? basmalaStyle, Color? backgroundColor, List bookmarkList = const [], Color? bookmarksColor, Widget? circularProgressWidget, DownloadFontsDialogStyle? downloadFontsDialogStyle, bool isDark = false, String? juzName, String? languageCode = 'ar', void onDefaultAyahLongPress(LongPressStartDetails details, AyahModel ayah)?, void onFontsAyahLongPress(LongPressStartDetails details, AyahFontsModel 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, Widget? topTitleChild, bool useDefaultAppBar = true, bool withPageView = true, bool? isFontsLocal = false, String? fontsName = 'p'})
-
Creates a new instance of QuranLibraryScreen.
const
Properties
- appBar → PreferredSizeWidget?
-
إذا قمت بإضافة شريط التطبيقات هنا فإنه سيحل محل شريط التطبيقات الافتراضية appBar
final
- ayahIconColor → Color?
-
يمكنك تمرير لون لأيقونة الآية ayahIconColor
final
- ayahSelectedBackgroundColor → Color?
-
يمكنك تمرير لون خلفية الآية المحدد ayahSelectedBackgroundColor
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?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDark → bool
-
قم بتمكين هذا المتغير إذا كنت تريد عرض القرآن في النمط المظلم isDark
final
- isFontsLocal → bool?
-
final
- juzName → String?
-
إذا كنت تريد تغيير كلمة "الجزء" إلى كلمة أخرى أو ترجمتها فقط قم بتمريرها لـ juzName
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- languageCode → String?
-
إذا كنت تريد تمرير كود اللغة الخاصة بالتطبيق لتغيير الأرقام على حسب اللغة،
:رمز اللغة الإفتراضي هو 'ar' languageCode
final
- onDefaultAyahLongPress → void Function(LongPressStartDetails details, AyahModel ayah)?
-
تُستخدم مع الخطوط الأساسية * عند الضغط المطوّل على أي آية باستخدام الخطوط الأساسية، يمكنك تفعيل ميزات إضافية مثل نسخ الآية أو مشاركتها وغير ذلك عبر onDefaultAyahLongPress.
Used with default fonts * When long-pressing on any verse with the default fonts, you can enable additional features such as copying the verse, sharing it, and more using onDefaultAyahLongPress.
final - onFontsAyahLongPress → void Function(LongPressStartDetails details, AyahFontsModel ayah)?
-
تُستخدم مع الخطوط المحملة * عند الضغط المطوّل على أي آية باستخدام الخطوط المحملة، يمكنك تفعيل ميزات إضافية مثل نسخ الآية أو مشاركتها وغير ذلك عبر onFontsAyahLongPress.
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 onFontsAyahLongPress.
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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sajdaName → String?
-
إذا كنت تريد تغيير كلمة "سجدة" إلى كلمة أخرى أو ترجمتها فقط قم بتمريرها لـ sajdaName
final
- showAyahBookmarkedIcon → bool
-
يمكنك تمكين أو تعطيل عرض أيقونة الإشارة المرجعية للآية showAyahBookmarkedIcon
final
- surahInfoStyle → SurahInfoStyle?
-
تغيير نمط معلومات السورة بواسطة هذه الفئة SurahInfoStyle
final
- surahNameStyle → SurahNameStyle?
-
تغيير نمط اسم السورة بهذه الفئة SurahNameStyle
final
- surahNumber → int?
-
يمكنك تمرير رقم السورة surahNumber
final
- textColor → Color?
-
يمكنك تمرير لون نص القرآن textColor
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, required 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(
dynamic 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