Skip to content

Commit fdc9950

Browse files
committed
⏪️ Revert TextScaler change
Fixes #525
1 parent e0749c9 commit fdc9950

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/src/widget/scale_text.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ class ScaleText extends StatelessWidget {
3636
@override
3737
Widget build(BuildContext context) {
3838
final MediaQueryData mqd = MediaQuery.of(context);
39-
final effectiveScaler = mqd.textScaler.clamp(
40-
minScaleFactor: minScaleFactor,
41-
maxScaleFactor: maxScaleFactor,
39+
final double effectiveFactor = mqd.textScaleFactor.clamp(
40+
minScaleFactor,
41+
maxScaleFactor,
4242
);
4343
return MediaQuery(
44-
data: mqd.copyWith(textScaler: effectiveScaler),
44+
data: mqd.copyWith(textScaleFactor: effectiveFactor),
4545
child: Text(
4646
text,
4747
style: style,

0 commit comments

Comments
 (0)