diff --git a/lib/src/line_size_builder.dart b/lib/src/line_size_builder.dart index 8ae725a..5a659db 100644 --- a/lib/src/line_size_builder.dart +++ b/lib/src/line_size_builder.dart @@ -37,7 +37,7 @@ class LineSizeBuilder extends StatelessWidget { style: styleForHeightCalculation ?? Theme.of(context).primaryTextTheme.bodyLarge, ), - textScaleFactor: MediaQuery.of(context).textScaleFactor, + textScaler: MediaQuery.of(context).textScaler, textDirection: TextDirection.ltr, )..layout(maxWidth: maxWidth);