-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Description
Use case
Recently, #167829 introduced MediaQuery.heightOf and MediaQuery.widthOf methods. After checking the Flutter repo, I noticed that 14 out of 28 calls to sizeOf use just one dimension.
Proposal
I'd like to propose the following:
- Replace
MediaQuery.sizeOf(context).heightwithMediaQuery.heightOf(context) - Replace
MediaQuery.sizeOf(context).widthwithMediaQuery.widthOf(context)
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team