textScaleFactor property

double textScaleFactor

The system-reported text scale.

This establishes the text scaling factor to use when rendering text, according to the user's platform preferences.

The onTextScaleFactorChanged callback is called whenever this value changes.

See also:

  • WidgetsBindingObserver, for a mechanism at the widgets layer to observe when this value changes.

Implementation

double get textScaleFactor => _textScaleFactor;