mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-01-18 03:10: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,
|
||||
builder: (context, child) => MediaQuery(
|
||||
data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0),
|
||||
data: MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling),
|
||||
child: child!,
|
||||
),
|
||||
initialRoute: NavigationRoutes.meteringScreen.name,
|
||||
|
|
|
@ -47,7 +47,7 @@ class WidgetTestApplicationMock extends StatelessWidget {
|
|||
],
|
||||
supportedLocales: S.delegate.supportedLocales,
|
||||
builder: (context, child) => MediaQuery(
|
||||
data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0),
|
||||
data: MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling),
|
||||
child: child!,
|
||||
),
|
||||
home: Scaffold(body: child),
|
||||
|
@ -124,7 +124,7 @@ class _GoldenTestApplicationMockState extends State<GoldenTestApplicationMock> {
|
|||
],
|
||||
supportedLocales: S.delegate.supportedLocales,
|
||||
builder: (context, child) => MediaQuery(
|
||||
data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0),
|
||||
data: MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling),
|
||||
child: child!,
|
||||
),
|
||||
home: widget.child,
|
||||
|
|
Loading…
Reference in a new issue