minimalLineHeight function

double minimalLineHeight(
  1. BuildContext context,
  2. TextStyle style
)

The height one line of style takes at the text scale in context: the look's styles set a line height and even leading, so a line's box is its scaled size times its height.

Implementation

double minimalLineHeight(BuildContext context, TextStyle style) =>
    MediaQuery.textScalerOf(context).scale(style.fontSize ?? 14) *
    (style.height ?? 1);