isTextScalerSupported function

bool isTextScalerSupported()

Implementation

bool isTextScalerSupported() {
  try {
    TextPainter(
      text: const TextSpan(text: 'test'),
      textScaler: TextScaler.linear(1.0),
    );
    return true;
  } catch (_) {
    return false;
  }
}