Remove textScaleFactor references from flutter/flutter (#142271)
These should the the last remaining `MediaQueryData.textScaleFactor` and `TextScaler.textScaleFactor` references.
This commit is contained in:
@@ -126,11 +126,10 @@ class _TimePickerOptionsState extends State<TimePickerOptions> {
|
||||
children: <Widget>[
|
||||
Expanded(
|
||||
child: GridView(
|
||||
gridDelegate: SliverGridDelegateWithMaxCrossAxisExtent(
|
||||
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
|
||||
maxCrossAxisExtent: 350,
|
||||
mainAxisSpacing: 4,
|
||||
// ignore: deprecated_member_use, https://github.com/flutter/flutter/issues/128825
|
||||
mainAxisExtent: 200 * MediaQuery.textScalerOf(context).textScaleFactor,
|
||||
mainAxisExtent: 200,
|
||||
crossAxisSpacing: 4,
|
||||
),
|
||||
children: <Widget>[
|
||||
|
||||
Reference in New Issue
Block a user