fontSize static method

double fontSize(
  1. BuildContext context,
  2. double unscaledSize
)

Resolve a glyph size for a renderer that does not use Text/RichText. Do not apply this to Text's style: Text already uses the ambient scaler.

Implementation

static double fontSize(BuildContext context, double unscaledSize) =>
    MediaQuery.textScalerOf(context).scale(unscaledSize);