From bb22de2e3216d3076512578dc07ac351215081b0 Mon Sep 17 00:00:00 2001 From: Songzex <2402265378@qq.com> Date: Wed, 18 Mar 2026 13:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BF=AE=E5=A4=8D=E8=BF=9C?= =?UTF-8?q?=E7=A8=8B=E6=8E=A7=E5=88=B6=E9=A1=B5=E9=9D=A2=E4=B8=AD=E7=82=B9?= =?UTF-8?q?=E7=81=AB=E7=9A=84=E7=8A=B6=E6=80=81=E5=80=BC=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../presentation/widgets/center_control_area.dart | 2 +- .../presentation/widgets/top_status_bar.dart | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/features/remote_control/presentation/widgets/center_control_area.dart b/lib/features/remote_control/presentation/widgets/center_control_area.dart index 1cb90a34..71378143 100644 --- a/lib/features/remote_control/presentation/widgets/center_control_area.dart +++ b/lib/features/remote_control/presentation/widgets/center_control_area.dart @@ -98,7 +98,7 @@ class CenterControlArea extends StatelessWidget { svgEnd: "assets/svgs/remote_down.svg", onStart: () => _handleSliderAction(label, "start", context), onCenter: () => _handleSliderAction(label, "center", context), - onEnd: () => debugPrint("$label end"), + onEnd: () => _handleSliderAction(label, "end", context), iconSize: boxWidth * 0.6 * 0.35, ), ), diff --git a/lib/features/remote_control/presentation/widgets/top_status_bar.dart b/lib/features/remote_control/presentation/widgets/top_status_bar.dart index b0e25efb..3643e4df 100644 --- a/lib/features/remote_control/presentation/widgets/top_status_bar.dart +++ b/lib/features/remote_control/presentation/widgets/top_status_bar.dart @@ -232,7 +232,7 @@ class TopStatusBar extends StatelessWidget { height: boxWidth, // 旋转后对应原宽度(足够长,不拥挤) child: CCExpandSlider( label: " ", - // 3. 图标适配旋转后的方向(仍用上下箭头,旋转后变为左右) + // 3. 图标适配旋转后的方向(仍用上下箭头,旋转后变为左右)因为外边旋转了 90度 参数传递也要转换 svgStart: "assets/svgs/remote_flame_minus.svg", // 旋转后→左箭头 svgCenter: "assets/svgs/remote_flame.svg", svgEnd: "assets/svgs/remote_flame_plus.svg", // 旋转后→右箭头 @@ -241,7 +241,7 @@ class TopStatusBar extends StatelessWidget { // 保留原有业务逻辑 onStart: () => _handleSliderAction(label, "start", context), onCenter: () => _handleSliderAction(label, "center", context), - onEnd: () => debugPrint("$label end"), + onEnd: () => _handleSliderAction(label, "end", context), ), ), ), @@ -262,19 +262,19 @@ class TopStatusBar extends StatelessWidget { switch (action) { case "start": - debugPrint('⬆点火啊'); + debugPrint('2熄火'); // TODO: 发送 🔥点火指令 - cubit.sendFireCommand(1); + cubit.sendFireCommand(2); break; case "center": - debugPrint('️熄火'); + debugPrint('️0熄火'); // TODO: 发送点火停止指令 cubit.sendFireCommand(0); break; case "end": - debugPrint('⬇熄火)'); + debugPrint('1点火)'); // TODO: 发送熄火后退指令 - cubit.sendFireCommand(2); + cubit.sendFireCommand(1); break; } }