This commit is contained in:
mmc
2026-02-25 18:39:09 +08:00
parent 30ef6c8e40
commit 27717cbba2
3 changed files with 15 additions and 361 deletions

View File

@@ -164,7 +164,7 @@ class _MapPageEnterpriseState extends State<MapPageEnterprise> {
child: BottomOperationPanel(
// 传入初始值
initialRobotMode:RobotMode.point ,
initialAreaMode: _currentAreaMode,
initialAreaMode: AreaMode.work,
// 接收面板的事件回调
onComplete: () {
// 完成按钮点击:关闭面板
@@ -172,12 +172,12 @@ class _MapPageEnterpriseState extends State<MapPageEnterprise> {
},
onRobotModeChanged: (mode) {
// 接收机器人模式变更
//setState(() => _currentRobotMode = mode);
setState(() => _currentRobotMode = mode);
debugPrint('外部收到机器人模式:$mode');
},
onAreaModeChanged: (mode) {
// 接收作业区域模式变更
//setState(() => _currentAreaMode = mode);
setState(() => _currentAreaMode = mode);
debugPrint('外部收到区域模式:$mode');
},
onAddTap: () {