We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TextScaler
1 parent e0749c9 commit fdc9950Copy full SHA for fdc9950
lib/src/widget/scale_text.dart
@@ -36,12 +36,12 @@ class ScaleText extends StatelessWidget {
36
@override
37
Widget build(BuildContext context) {
38
final MediaQueryData mqd = MediaQuery.of(context);
39
- final effectiveScaler = mqd.textScaler.clamp(
40
- minScaleFactor: minScaleFactor,
41
- maxScaleFactor: maxScaleFactor,
+ final double effectiveFactor = mqd.textScaleFactor.clamp(
+ minScaleFactor,
+ maxScaleFactor,
42
);
43
return MediaQuery(
44
- data: mqd.copyWith(textScaler: effectiveScaler),
+ data: mqd.copyWith(textScaleFactor: effectiveFactor),
45
child: Text(
46
text,
47
style: style,
0 commit comments