GetSingleAyah class

Inheritance
Available extensions

Constructors

GetSingleAyah({Key? key, required int surahNumber, required int ayahNumber, Color? textColor, bool? isDark = false, double? fontSize, bool? isBold = true, AyahModel? ayahs, bool? isSingleAyah = true, bool? islocalFont = false, String? fontsName, int? pageIndex, dynamic onAyahLongPress(LongPressStartDetails details, AyahModel ayah)?, Color? ayahIconColor, bool showAyahBookmarkedIcon = false, Color? bookmarksColor, Color? customBookmarksColor(AyahModel)?, Color? ayahSelectedBackgroundColor, TextAlign? textAlign, bool? enabledTajweed, bool enableWordSelection = false, dynamic onWordTap(WordRef wordRef)?, Color? selectedWordColor, WordRef? externalSelectedWordRef, ({int fromWord, int toWord})? selectedWordsRange, bool? showAyahNumber = true, double? textHeight})

Properties

ayahIconColor → Color?
final
ayahNumber → int
final
ayahs → AyahModel?
final
ayahSelectedBackgroundColor → Color?
final
bookmarksColor → Color?
final
customBookmarksColor → Color? Function(AyahModel)?
final
enabledTajweed → bool?
final
enableWordSelection → bool
تفعيل خاصية تحديد الكلمة بضغطة واحدة (يعمل مع خط QPC فقط). عند التفعيل، تُحدّد أول كلمة افتراضياً.
final
externalSelectedWordRef → WordRef?
لتحديد كلمة برمجياً من الخارج. عند تمريره يُتجاهل التحديد المحلي.
final
fontSize → double?
final
fontsName → String?
final
hashCode → int
The hash code for this object.
no setterinherited
isBold → bool?
final
isDark → bool?
final
islocalFont → bool?
final
isSingleAyah → bool?
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onAyahLongPress → dynamic Function(LongPressStartDetails details, AyahModel ayah)?
final
onWordTap → dynamic Function(WordRef wordRef)?
callback يُستدعى عند الضغط على كلمة، يعيد WordRef يحتوي (surahNumber, ayahNumber, wordNumber).
final
pageIndex → int?
final
quranCtrl → QuranCtrl
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedWordColor → Color?
لون خلفية الكلمة المحدّدة. الافتراضي: لون primary بشفافية 0.25.
final
selectedWordsRange → ({int fromWord, int toWord})?
نطاق كلمات محدّدة (شامل). مثال: (fromWord: 1, toWord: 3) يُظلل الكلمات 1 و2 و3. يأخذ أولوية على externalSelectedWordRef.
final
showAyahBookmarkedIcon → bool
final
showAyahNumber → bool?
لإظهار أيقونة بجانب الآية.
final
surahNumber → int
final
textAlign → TextAlign?
final
textColor → Color?
final
textHeight → double?
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, Color sajdaNameColor) → 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