安卓权限添加
This commit is contained in:
@@ -118,10 +118,11 @@ class CenterControlArea extends StatelessWidget {
|
||||
|
||||
// 🔥 门槛检查:与摇杆一致,未收到 TCP 0x02 推送时禁止操作并提示。
|
||||
// 胶囊 Toast 全局去重、自动消失,适配 StatelessWidget 无实例状态。
|
||||
if (!context.read<RemoteControlCubit>().isStatusPushActive()) {
|
||||
CapsuleToast.show('暂未收到该机器的推送,不能控制', showCheck: false);
|
||||
return;
|
||||
}
|
||||
// 🔥 临时关闭,便于机器未开时用 Mock 假数据联调倒车影像;联调后取消注释恢复,勿删。
|
||||
// if (!context.read<RemoteControlCubit>().isStatusPushActive()) {
|
||||
// CapsuleToast.show('暂未收到该机器的推送,不能控制', showCheck: false);
|
||||
// return;
|
||||
// }
|
||||
|
||||
// 🔥 使用deviceKey进行判断,不依赖显示文本
|
||||
switch (deviceKey) {
|
||||
|
||||
Reference in New Issue
Block a user