diff options
Diffstat (limited to 'lib/volume_slider.dart')
-rw-r--r-- | lib/volume_slider.dart | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/volume_slider.dart b/lib/volume_slider.dart index 0665491..25c1306 100644 --- a/lib/volume_slider.dart +++ b/lib/volume_slider.dart @@ -2,9 +2,9 @@ import 'dart:io'; import 'package:async/async.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:flutter_homescreen/vehicle-signals/vss_providers.dart'; +import 'package:flutter_homescreen/vehicle-signals/vss_signal_providers.dart'; import 'package:flutter_homescreen/vehicle-signals/vss_path.dart'; -import 'package:flutter_homescreen/vehicle-signals/viss_methods.dart'; +import 'package:flutter_homescreen/vehicle-signals/vss_provider.dart'; class VolumeSlider extends ConsumerWidget { final Color thumbColor; @@ -40,10 +40,9 @@ class VolumeSlider extends ConsumerWidget { ref .read(vehicleSignalMediaVolumeProvider.notifier) .update(volume: value.toInt()); - WebSocket? s = ref.read(VISServerSocketProvider).socket; - if (s != null) { - VISS.set( - s, ref, VSSPath.vehicleMediaVolume, value.toInt().toString()); + var vss = ref.read(vssClientProvider); + if (vss != null) { + vss.setUint32(VSSPath.vehicleMediaVolume, value.toInt()); } }); } |