远程遥控界面编写

This commit is contained in:
CC
2026-01-19 18:24:24 +08:00
parent 289e706337
commit 32b702fb6d
48 changed files with 1118 additions and 303 deletions

View File

@@ -132,16 +132,16 @@ class JoystickPainter extends CustomPainter {
paint
..color = const Color(0x6600BFFF)
..style = PaintingStyle.stroke
..strokeWidth = 2;
..strokeWidth = 1;
canvas.drawCircle(center, radius + 8, paint);
// 2. 绘制箭头 (对应 drawArrow 逻辑)
paint
..color = Colors.cyan.withOpacity(0.5)
..strokeCap = StrokeCap.round
..strokeWidth = 4;
..strokeWidth = 2;
const arrowSize = 20.0;
const arrowSize = 10.0;
if (axisHint == AxisHint.forwardBackward) {
_drawArrow(
canvas,