删除撤回

This commit is contained in:
mmc
2026-02-26 09:17:14 +08:00
parent 0b936f50aa
commit 919156789b
3 changed files with 78 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
class RouteDirectionPanel extends StatefulWidget { // 重命名为Panel更符合组件语义
class RouteDirectionPanel extends StatefulWidget {
// 重命名为Panel更符合组件语义
// 接收外部传入的初始值
final bool initialOptimalHeading;
final double initialDirection;
@@ -11,7 +12,7 @@ class RouteDirectionPanel extends StatefulWidget { // 重命名为Panel更符合
const RouteDirectionPanel({
super.key,
this.initialOptimalHeading = true, // 默认开启最优航向
this.initialDirection = 0.0, // 默认方向0度
this.initialDirection = 0.0, // 默认方向0度
this.onConfirm,
this.onCancel,
});
@@ -73,8 +74,8 @@ class _RouteDirectionPanelState extends State<RouteDirectionPanel> {
],
),
const SizedBox(height: 20),
const Divider(height: 1, color: Colors.grey),
const SizedBox(height: 20),
//const Divider(height: 1, color: Colors.grey),
//const SizedBox(height: 20),
// 最优航向开关
Row(