aboutsummaryrefslogtreecommitdiffstats
path: root/lib/presentation
diff options
context:
space:
mode:
authorLisandro Pérez Meyer <lpmeyer@ics.com>2023-11-16 15:42:22 -0300
committerLisandro Pérez Meyer <lpmeyer@ics.com>2023-11-16 15:47:49 -0300
commit6a00ac1f8613048b5c1f7ecdbd1adcbbcfdca5ed (patch)
tree8cdd919f84a50007ae0364cba37bb8bdaf19f5fc /lib/presentation
parent94b78fd369c318baf1a98d4f510d791ea9f17017 (diff)
Disable value animation at start up % update FuelLevel path.
Remove some warnings. Original from: Dominik Wawrzonek <dwawrzonek@ics.com> Bug-AGL: SPEC-4971 Change-Id: I3693fa74f7995b4dcb016812403ed800702cb81c Signed-off-by: Lisandro Pérez Meyer <lpmeyer@ics.com>
Diffstat (limited to 'lib/presentation')
-rw-r--r--lib/presentation/screens/apps/apps_content.dart1
-rw-r--r--lib/presentation/screens/dashboard/widgets/circle_indicator.dart2
-rw-r--r--lib/presentation/screens/splash/widget/splash_content.dart2
3 files changed, 2 insertions, 3 deletions
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<FuelProgressIndicator>
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<SplashContent>
width: 452,
text: 'Continue',
onTap: () {
- ref.read(vehicleProvider.notifier).setInitialState();
+ // ref.read(vehicleProvider.notifier).setInitialState();
ref
.read(appProvider.notifier)
.update((state) => state = AppState.dashboard);