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,