From a63633ab7c2cc8868df9256a01a20f2b12f16ba7 Mon Sep 17 00:00:00 2001 From: BrightDV <92821484+BrightDV@users.noreply.github.com> Date: Thu, 2 May 2024 21:21:34 +0200 Subject: [PATCH] [circuit] fix #154 (update leader gap check) --- lib/Screens/circuit.dart | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/Screens/circuit.dart b/lib/Screens/circuit.dart index 8431c98..8b1c045 100644 --- a/lib/Screens/circuit.dart +++ b/lib/Screens/circuit.dart @@ -356,9 +356,11 @@ class CircuitScreen extends StatelessWidget { Expanded( flex: 6, child: Text( - driverResults[ - 'gapToLeader'] != - "0.0" + driverResults['gapToLeader'] != + "0.0" && + driverResults[ + 'gapToLeader'] != + "0" ? '+${driverResults['gapToLeader']}' : driverResults[ 'raceTime'], @@ -979,9 +981,10 @@ class CircuitScreen extends StatelessWidget { Expanded( flex: 6, child: Text( - driverResults[ - 'gapToLeader'] != - "0.0" + driverResults['gapToLeader'] != + "0.0" && + driverResults['gapToLeader'] != + "0" ? '+${driverResults['gapToLeader']}' : driverResults[ 'raceTime'],