Skip to content

Replace deprecated MediaQueryData.fromWindow #143397

@stuartmorgan-g

Description

@stuartmorgan-g
'MediaQueryData.fromWindow' is deprecated and shouldn't be used.
Use MediaQueryData.fromView instead. This constructor was deprecated in preparation for the upcoming
multi-window support. This feature was deprecated after v3.7.0-32.0.pre. Try replacing the use of the
deprecated member with the replacement. • deprecated_member_use

This requires Flutter 3.8, which is lower than our min allowed version, so this should be straightforward.

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