Migrate a Flutter App from textScaleFactor to TextScaler (Flutter 3.16+)
Replace the deprecated textScaleFactor on MediaQueryData, Text, RichText and TextPainter with TextScaler. What dart fix rewrites (3 of 9 call sites in our sample), why its output can quietly undo Android 14 nonlinear font scaling, how to cap text size with clamp and withClampedTextScaling, and the equality and test gotchas. Measured on Flutter 3.44.8 with Dart 3.12.2.