From 6a00ac1f8613048b5c1f7ecdbd1adcbbcfdca5ed Mon Sep 17 00:00:00 2001 From: Lisandro Pérez Meyer Date: Thu, 16 Nov 2023 15:42:22 -0300 Subject: Disable value animation at start up % update FuelLevel path. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove some warnings. Original from: Dominik Wawrzonek Bug-AGL: SPEC-4971 Change-Id: I3693fa74f7995b4dcb016812403ed800702cb81c Signed-off-by: Lisandro Pérez Meyer --- lib/presentation/screens/apps/apps_content.dart | 1 - lib/presentation/screens/dashboard/widgets/circle_indicator.dart | 2 +- lib/presentation/screens/splash/widget/splash_content.dart | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/presentation') diff --git a/lib/presentation/screens/apps/apps_content.dart b/lib/presentation/screens/apps/apps_content.dart index 52da10c..fe6e3b0 100644 --- a/lib/presentation/screens/apps/apps_content.dart +++ b/lib/presentation/screens/apps/apps_content.dart @@ -1,4 +1,3 @@ -import 'package:flutter_ics_homescreen/data/models/hybrid.dart'; import 'package:flutter_ics_homescreen/export.dart'; import 'package:flutter_ics_homescreen/presentation/screens/apps/widgets/app_button.dart'; diff --git a/lib/presentation/screens/dashboard/widgets/circle_indicator.dart b/lib/presentation/screens/dashboard/widgets/circle_indicator.dart index 7a4e724..8fe9533 100644 --- a/lib/presentation/screens/dashboard/widgets/circle_indicator.dart +++ b/lib/presentation/screens/dashboard/widgets/circle_indicator.dart @@ -285,7 +285,7 @@ class FuelProgressIndicatorState extends ConsumerState width: 220, child: CustomPaint( foregroundPainter: CirclePainter( - value: fuelLevel, + value: fuelLevel.toDouble(), maxValue: maxFuelLevel, isFuel: true, isRPM: false), diff --git a/lib/presentation/screens/splash/widget/splash_content.dart b/lib/presentation/screens/splash/widget/splash_content.dart index 325baeb..991be84 100644 --- a/lib/presentation/screens/splash/widget/splash_content.dart +++ b/lib/presentation/screens/splash/widget/splash_content.dart @@ -126,7 +126,7 @@ class SplashContentState extends ConsumerState width: 452, text: 'Continue', onTap: () { - ref.read(vehicleProvider.notifier).setInitialState(); + // ref.read(vehicleProvider.notifier).setInitialState(); ref .read(appProvider.notifier) .update((state) => state = AppState.dashboard); -- cgit 1.2.3-korg