Skip to content

Replace deprecated textScaleFactor and textScaleFactorOf #143400

@stuartmorgan-g

Description

@stuartmorgan-g
'textScaleFactorOf' is deprecated and shouldn't be used. Use
textScalerOf instead. Use of textScaleFactor was deprecated in preparation for the upcoming nonlinear text
scaling support. This feature was deprecated after v3.12.0-2.0.pre. Try replacing the use of the
deprecated member with the replacement.
'textScaleFactor' is deprecated and shouldn't be used. Use textScaler
instead. Use of textScaleFactor was deprecated in preparation for the upcoming nonlinear text scaling support.
This feature was deprecated after v3.12.0-2.0.pre. Try replacing the use of the deprecated member with the
replacement.

It looks like we'll need to make affected packages use a minimum of 3.13 3.16 (apparently the message is misleading about the version; https://docs.flutter.dev/release/breaking-changes#released-in-flutter-316 puts it at 3.16, and legacy analysis failed in a PR that used 3.13 as the minimum).

#128522 introduced the deprecation, and has more info.

Metadata

Metadata

Labels

c: tech-debtTechnical debt, code quality, testing, etc.p: deprecated apiUse of a deprecated Dart API in flutter/packages that needs to be updatedpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions