textScale method

double textScale(
  1. double fontSize
)

Computes the scaled font size (in logical pixels) with the given unscaled fontSize (in logical pixels). use: context.textScale(double fontSize) instead of: MediaQuery.of(this).textScaler.scale(fontSize)

Implementation

double textScale(double fontSize) =>
    MediaQuery.of(this).textScaler.scale(fontSize);