map follow on drone focus. rubberband pointing to next waypoint. drone icon bigger 40px

This commit is contained in:
Constantin Leue
2026-08-03 22:07:11 +02:00
parent 7b198e1755
commit 2f4353f3fa
8 changed files with 152 additions and 36 deletions
+13 -1
View File
@@ -4,11 +4,20 @@ import 'package:flutter/material.dart';
/// Plan- (MapSearchControls: Home/Fit) und Fly-Modus-Kartensteuerungen
/// (FlyMapControls: Drohne/Fit).
class NavIconButton extends StatelessWidget {
const NavIconButton({super.key, required this.icon, required this.onTap});
const NavIconButton({
super.key,
required this.icon,
required this.onTap,
this.active = false,
});
final IconData icon;
final VoidCallback onTap;
/// Rosa Akzentrand (Doku 3.10: DroneMarkerIcon-Farbe) fuer Knoepfe mit
/// an/aus-Zustand, z.B. den Drohnen-Folgemodus (FlyMapControls).
final bool active;
@override
Widget build(BuildContext context) {
return GestureDetector(
@@ -19,6 +28,9 @@ class NavIconButton extends StatelessWidget {
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.black.withValues(alpha: 0.55),
border: active
? Border.all(color: const Color(0xFFFF2E93), width: 2)
: null,
),
child: Icon(icon, color: Colors.white, size: 16),
),