From e12dc500dd001486ad09b141f12d3e9ceeebee1e Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Mon, 6 Jan 2025 15:21:59 +0100 Subject: [PATCH] replaced text scale deprecation --- lib/application.dart | 2 +- test/application_mock.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/application.dart b/lib/application.dart index a58de01..e272b92 100644 --- a/lib/application.dart +++ b/lib/application.dart @@ -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, diff --git a/test/application_mock.dart b/test/application_mock.dart index 8475389..7034137 100644 --- a/test/application_mock.dart +++ b/test/application_mock.dart @@ -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 { ], 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,