diff options
author | Scott Murray <scott.murray@konsulko.com> | 2024-01-05 18:50:51 -0500 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2024-01-05 18:52:32 -0500 |
commit | dbb971abeaa2beff2a13e421f8cca83b3054db34 (patch) | |
tree | 049af6bf56c53534807f6cb5de9803dcb111c4e6 /lib/screen/widgets/turn_signal.dart | |
parent | da47b0611f7495fb9f4727449721c18c9a617217 (diff) |
Fix unit handling
Fix distance unit handling with respect to the VSS signal for that,
and add temperature unit support.
Bug-AGL: SPEC-5045
Change-Id: I9b25c36c36d19da55f1b9bff7f380c55d592d5d6
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'lib/screen/widgets/turn_signal.dart')
-rw-r--r-- | lib/screen/widgets/turn_signal.dart | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/screen/widgets/turn_signal.dart b/lib/screen/widgets/turn_signal.dart index 446fbb8..861ffd4 100644 --- a/lib/screen/widgets/turn_signal.dart +++ b/lib/screen/widgets/turn_signal.dart @@ -6,13 +6,13 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; class TurnSignal extends HookConsumerWidget {
final double screenHeight;
- final bool isLefton;
- final bool isRighton;
+ final bool isLeftOn;
+ final bool isRightOn;
const TurnSignal({
Key? key,
required this.screenHeight,
- required this.isLefton,
- required this.isRighton,
+ required this.isLeftOn,
+ required this.isRightOn,
}) : super(key: key);
double calcPadding(double value, double height) {
// values wrt to values at 720 height
@@ -38,7 +38,7 @@ class TurnSignal extends HookConsumerWidget { children: [
Image.asset(
"images/left.png",
- color: (isLefton)
+ color: (isLeftOn)
? Color.lerp(
Colors.black,
const Color.fromARGB(255, 99, 251, 104),
@@ -48,7 +48,7 @@ class TurnSignal extends HookConsumerWidget { ),
Image.asset(
"images/right.png",
- color: (isRighton)
+ color: (isRightOn)
? Color.lerp(
Colors.black,
const Color.fromARGB(255, 99, 251, 104),
|