From 47b266f216027f674d6c80bfa87934b2979937e2 Mon Sep 17 00:00:00 2001 From: minie4 Date: Sun, 30 Mar 2025 21:01:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20balance=20value=20not=20be?= =?UTF-8?q?ing=20of=20type=20double?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mixer_state.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mixer_state.dart b/lib/mixer_state.dart index a2d3274..3051836 100644 --- a/lib/mixer_state.dart +++ b/lib/mixer_state.dart @@ -83,7 +83,7 @@ class State { String? toUuid; bool mute; double volume; - int balance; + double balance; State({ this.toUuid, @@ -96,7 +96,7 @@ class State { toUuid: json["toUUID"], mute: json["mute"], volume: json["volume"]?.toDouble(), - balance: json["balance"], + balance: json["balance"]?.toDouble(), ); Map toJson() => {