ui: gps compass widget

This commit is contained in:
Mikkeli Matlock
2026-02-08 00:26:59 +09:00
parent bc53bd7e82
commit 324cd5dddc
2 changed files with 65 additions and 3 deletions

View File

@@ -203,11 +203,11 @@ class _DashboardScreenState extends State<DashboardScreen> {
wsState: _wsState,
),
const SizedBox(height: 5),
const SizedBox(height: 2),
// Main content area - big stat boxes
Expanded(
flex: 8,
flex: 7,
child: Row(
children: [
// Attitude indicator (whiskey mark)
@@ -231,11 +231,12 @@ class _DashboardScreenState extends State<DashboardScreen> {
// Bottom stats row
Expanded(
flex: 2,
flex: 3,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
StatBox(value: _formatInt(_rpm), label: 'RPM', isWarning: () => (_rpm ?? 0) > 4000),
GpsCompass(heading: 147),
StatBox(value: _formatGear(_gear), label: 'GEAR'),
],
),