UrduTextTheme class

A pre-wired TextTheme tuned for Nastaliq script.

Nastaliq is a hanging script with deep descenders: rendered with Flutter's default line height it clips letters vertically and overlaps lines. This theme multiplies every style's height by lineHeightMultiplier (defaults to 2.0, the value the Nastaliq type community recommends for body text) and optionally injects a Nastaliq font family.

MaterialApp(
  theme: ThemeData(
    fontFamily: 'NotoNastaliqUrdu',
    textTheme: UrduTextTheme.nastaliq(baseTheme),
  ),
)

Constructors

UrduTextTheme()

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

nastaliq(TextTheme base, {String? fontFamily, double lineHeightMultiplier = 2.0}) → TextTheme
Applies Nastaliq-safe line heights to every style in base.