PageFontSizeHelper class

Helpers to compute dynamic font sizes for Quran pages across devices.

Constructors

PageFontSizeHelper()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

getFontSize(int pageIndex, BuildContext context) → double
hafsFontSize({required BuildContext context, double? maxWidth}) → double
Compute dynamic base font size for Hafs (text-scale mode).
qcfFontSize({required BuildContext context, required int pageIndex, double? maxWidth}) → double
Compute dynamic font size for QCF (downloaded fonts) pages.