disabled auto connect when switching to fly mode and no disconnect when leavin fly mode, race condition fix for connectionType ( now telemetry not working anymore), UI optimizations: centered speed and alt, zoom to mission uses full screen
This commit is contained in:
@@ -120,6 +120,14 @@ class FlyScreen extends ConsumerWidget {
|
||||
MediaQuery.of(context).padding.left,
|
||||
MediaQuery.of(context).padding.right,
|
||||
);
|
||||
// Gleiche Reservierung fuer die Fusszeile wie die Rad-Readouts im
|
||||
// Plan-Modus (PlanScreen: wheelBottomInset), damit die Alt/Speed-
|
||||
// Anzeige zwischen Kopf- und Fusszeile vertikal zentriert erscheint,
|
||||
// statt am Kartenrand zu kleben.
|
||||
final footerBottomInset = math.max(
|
||||
MediaQuery.of(context).size.height * 0.06,
|
||||
124.0,
|
||||
);
|
||||
final terrainProfile = ref.watch(terrainProvider).profile;
|
||||
final warnings = computeMissionWarnings(
|
||||
waypoints: waypoints,
|
||||
@@ -179,13 +187,15 @@ class FlyScreen extends ConsumerWidget {
|
||||
// Rad-Widget (curAlt/curSpeed) gibt, dessen Wert sinnvoll waere.
|
||||
Positioned(
|
||||
top: 56,
|
||||
bottom: footerBottomInset,
|
||||
left: 14 + safeEdgeInset,
|
||||
child: _liveReadout('Alt', telemetry?.altitudeM, 'm'),
|
||||
child: Center(child: _liveReadout('Alt', telemetry?.altitudeM, 'm')),
|
||||
),
|
||||
Positioned(
|
||||
top: 56,
|
||||
bottom: footerBottomInset,
|
||||
right: 14 + safeEdgeInset,
|
||||
child: _liveReadout('Speed', telemetry?.speedMs, 'm/s'),
|
||||
child: Center(child: _liveReadout('Speed', telemetry?.speedMs, 'm/s')),
|
||||
),
|
||||
Positioned(
|
||||
left: 0,
|
||||
|
||||
Reference in New Issue
Block a user