Skip to content

Commit 521e3a6

Browse files
authored
chore(authenticator): SocialSignInButtons to use textScaler instead of textScaleFactor (#4791)
1 parent 57ce816 commit 521e3a6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/authenticator/amplify_authenticator/lib/src/widgets/social/social_button.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ class SocialSignInButtons extends StatelessAuthenticatorComponent {
4545
?.resolve({}) ??
4646
Theme.of(context).textTheme.labelLarge;
4747
final tp = TextPainter(
48-
// TODO(dnys1): replace with textScaleFactor when min flutter version is bumped to 3.16.0
49-
// see: https://docs.flutter.dev/release/breaking-changes/deprecate-textscalefactor#migrating-code-that-consumes-textscalefactor
50-
// ignore: deprecated_member_use
51-
textScaleFactor: MediaQuery.textScaleFactorOf(context),
48+
textScaler: MediaQuery.textScalerOf(context),
5249
text: TextSpan(
5350
text: text,
5451
style: style,

0 commit comments

Comments
 (0)