From 388c2a418ad0aa5849e9435471b51d131d2e975c Mon Sep 17 00:00:00 2001 From: Miroslav Mazel Date: Tue, 28 Nov 2023 12:53:00 +0100 Subject: [PATCH] TextScaler instead of textScaleFactor --- .../dashboard/components/GroupedStoppedTimersRowWide.dart | 2 +- lib/screens/dashboard/components/StoppedTimerRowWide.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/screens/dashboard/components/GroupedStoppedTimersRowWide.dart b/lib/screens/dashboard/components/GroupedStoppedTimersRowWide.dart index c687b7d..7db3a4d 100644 --- a/lib/screens/dashboard/components/GroupedStoppedTimersRowWide.dart +++ b/lib/screens/dashboard/components/GroupedStoppedTimersRowWide.dart @@ -136,7 +136,7 @@ class _GroupedStoppedTimersRowWideState offset: const Offset(2, -4), child: Text( "+${widget.totalDuration.inDays}", - textScaleFactor: 0.8, + textScaler: const TextScaler.linear(0.8), style: timeSpanStyle, ), ), diff --git a/lib/screens/dashboard/components/StoppedTimerRowWide.dart b/lib/screens/dashboard/components/StoppedTimerRowWide.dart index 64ebf2a..6198fa0 100644 --- a/lib/screens/dashboard/components/StoppedTimerRowWide.dart +++ b/lib/screens/dashboard/components/StoppedTimerRowWide.dart @@ -105,7 +105,7 @@ class StoppedTimerRowWide extends StatelessWidget { offset: const Offset(2, -4), child: Text( "+${duration.inDays}", - textScaleFactor: 0.8, + textScaler: const TextScaler.linear(0.8), style: timeSpanStyle, ), ),