mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-01-18 11:20:40 +00:00
replaced text scale deprecation
This commit is contained in:
parent
f784af927a
commit
e12dc500dd
2 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ class Application extends StatelessWidget {
|
||||||
],
|
],
|
||||||
supportedLocales: S.delegate.supportedLocales,
|
supportedLocales: S.delegate.supportedLocales,
|
||||||
builder: (context, child) => MediaQuery(
|
builder: (context, child) => MediaQuery(
|
||||||
data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0),
|
data: MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling),
|
||||||
child: child!,
|
child: child!,
|
||||||
),
|
),
|
||||||
initialRoute: NavigationRoutes.meteringScreen.name,
|
initialRoute: NavigationRoutes.meteringScreen.name,
|
||||||
|
|
|
@ -47,7 +47,7 @@ class WidgetTestApplicationMock extends StatelessWidget {
|
||||||
],
|
],
|
||||||
supportedLocales: S.delegate.supportedLocales,
|
supportedLocales: S.delegate.supportedLocales,
|
||||||
builder: (context, child) => MediaQuery(
|
builder: (context, child) => MediaQuery(
|
||||||
data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0),
|
data: MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling),
|
||||||
child: child!,
|
child: child!,
|
||||||
),
|
),
|
||||||
home: Scaffold(body: child),
|
home: Scaffold(body: child),
|
||||||
|
@ -124,7 +124,7 @@ class _GoldenTestApplicationMockState extends State<GoldenTestApplicationMock> {
|
||||||
],
|
],
|
||||||
supportedLocales: S.delegate.supportedLocales,
|
supportedLocales: S.delegate.supportedLocales,
|
||||||
builder: (context, child) => MediaQuery(
|
builder: (context, child) => MediaQuery(
|
||||||
data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0),
|
data: MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling),
|
||||||
child: child!,
|
child: child!,
|
||||||
),
|
),
|
||||||
home: widget.child,
|
home: widget.child,
|
||||||
|
|
Loading…
Reference in a new issue