diff options
author | Scott Murray <scott.murray@konsulko.com> | 2023-01-02 15:35:50 -0500 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2023-01-02 20:42:53 +0000 |
commit | be4da312ad1f33cea62ba7c8768bb4060ee6a178 (patch) | |
tree | fd9ec01408646706827e3b369695e53bbd105279 /lib/screen/home.dart | |
parent | a0da726bdb788e6066ab8fd58bb993fe63ad52ac (diff) |
VSS signal fixeslamprey_12.1.13lamprey/12.1.1312.1.13
Changes:
- Update some signals for VSS 3.0 changes that were missed on the
initial pass.
- Improve error handling in VSS parsing to display error message
from the VIS server.
- Add explicit knob to disable navigation display with a default
value of disabled, so that mode switches triggered by the steering
wheel "Info" signal do not unexpectedly activate it.
Bug-AGL: SPEC-4664
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ib5fba613053f2860a0a5ff7331c78d6ab9590848
(cherry picked from commit c605ab037edcb35a7aa365fa6abe7fd6289d8a19)
Diffstat (limited to 'lib/screen/home.dart')
-rw-r--r-- | lib/screen/home.dart | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/screen/home.dart b/lib/screen/home.dart index 4cfa770..3bd47a8 100644 --- a/lib/screen/home.dart +++ b/lib/screen/home.dart @@ -15,6 +15,7 @@ import 'package:flutter_cluster_dashboard/screen/widgets/guages/speed_guage_anim import 'package:flutter_cluster_dashboard/screen/widgets/signals.dart';
import 'package:flutter_cluster_dashboard/screen/widgets/turn_signal.dart';
import 'package:flutter_cluster_dashboard/vehicle_signal/vehicle_signal_provider.dart';
+import 'package:flutter_cluster_dashboard/cluster_config.dart';
import 'package:intl/intl.dart';
class Home extends ConsumerWidget {
@@ -46,6 +47,7 @@ class Home extends ConsumerWidget { @override
Widget build(BuildContext context, WidgetRef ref) {
+ final clusterConfig = ref.read(clusterConfigStateprovider);
final vehicle = ref.watch(vehicleSignalProvider);
final clock = ref.watch(clockProvider);
final windowHeight = MediaQuery.of(context).size.height;
@@ -222,7 +224,9 @@ class Home extends ConsumerWidget { fit: FlexFit.tight,
child: SizedBox(
width: (330 * screenHeight) / 720,
- child: (vehicle.isSteeringInfo)
+ child: (clusterConfig
+ .enableNavigation &&
+ vehicle.isSteeringInfo)
? const NavigationHome()
: Padding(
padding: EdgeInsets.symmetric(
|