Configurable units fixes 80/29580/1
authorScott Murray <scott.murray@konsulko.com>
Fri, 5 Jan 2024 01:13:01 +0000 (20:13 -0500)
committerScott Murray <scott.murray@konsulko.com>
Fri, 5 Jan 2024 01:20:16 +0000 (20:20 -0500)
commit31438c5081e8ee5b520787a6e64b9372ec678886
tree3c2fd4d08d0ad5070ade0f6111fe5961ed39a8da
parent5588d1d26f1be968af6809e43507d7be0fadf434
Configurable units fixes

Notable changes:
- Add pressure unit to the units model.
- Add tire pressure unit configuration page under settings.
- Rework the VSS client, provider, and the associated handling in
  the vehicle and audio state providers to make the signal updating
  code reusable for processing the result of VAL API get commands.
- Add logic to get the initial values of the used VSS signals so
  the initial application state looks sane in demo scenarios.
- Add VSS signal support to the units provider so that changes will
  be pushed out for e.g. IC use.
- Fix pressure unit use in various widgets.
- Fix up range calculation for dashboard to correctly account for
  units and the incoming VSS value being in meters.
- Fix some unit naming inconsistencies around capitalization.

Bug-AGL: SPEC-5031, SPEC-5032

Change-Id: I33ac735dfbe35283bd30c92aa157cbdb7af1837c
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
16 files changed:
lib/core/constants/vss_path.dart
lib/data/data_providers/app_provider.dart
lib/data/data_providers/audio_notifier.dart
lib/data/data_providers/units_notifier.dart
lib/data/data_providers/val_client.dart
lib/data/data_providers/vehicle_notifier.dart
lib/data/models/units.dart
lib/data/models/vehicle.dart
lib/export.dart
lib/presentation/router/routes/routes.dart
lib/presentation/screens/dashboard/widgets/car_status.dart
lib/presentation/screens/dashboard/widgets/circle_indicator.dart
lib/presentation/screens/dashboard/widgets/range.dart
lib/presentation/screens/settings/settings_screens/units/distance/distance_unit_screen.dart
lib/presentation/screens/settings/settings_screens/units/pressure/pressure_unit_screen.dart [new file with mode: 0644]
lib/presentation/screens/settings/settings_screens/units/units_screen.dart