getTextScaleFactor static method

double getTextScaleFactor(
  1. BuildContext context
)

Get the current text scale factor.

Implementation

static double getTextScaleFactor(BuildContext context) {
  return MediaQuery.of(context).textScaler.scale(1.0);
}