CHECKPOINT: Pre-Phase-8 telemetry validation baseline

This commit is contained in:
Developer 2026-08-28 03:40:32 -04:00
parent a689adf5f2
commit 98f3ea9f35
2 changed files with 11 additions and 5 deletions

View File

@ -176,8 +176,9 @@ class DashboardScreen extends ConsumerWidget {
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
_buildDataBox(context, 'TRIP', '${session.tripDistanceMiles.toStringAsFixed(2)} MI'),
_buildDataBox(context, 'TOP SPD', '${session.topSpeedMph.toStringAsFixed(0)} MPH'),
Expanded(child: _buildDataBox(context, 'TRIP', '${session.tripDistanceMiles.toStringAsFixed(2)} MI')),
const SizedBox(width: 4),
Expanded(child: _buildDataBox(context, 'TOP SPD', '${session.topSpeedMph.toStringAsFixed(0)} MPH')),
],
),
],
@ -206,8 +207,9 @@ class DashboardScreen extends ConsumerWidget {
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
_buildDataBox(context, 'AVG SPD', '${session.averageSpeedMph.toStringAsFixed(1)} MPH'),
_buildDataBox(context, 'STATUS', session.state.name.toUpperCase()),
Expanded(child: _buildDataBox(context, 'AVG SPD', '${session.averageSpeedMph.toStringAsFixed(1)} MPH')),
const SizedBox(width: 4),
Expanded(child: _buildDataBox(context, 'STATUS', session.state.name.toUpperCase())),
],
),
],

View File

@ -1,4 +1,4 @@
import 'package:flutter/material.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:shared_preferences/shared_preferences.dart';
@ -79,6 +79,10 @@ void main() {
});
testWidgets('EvolutionRecordsScreen renders speed records and performance times', (tester) async {
tester.view.physicalSize = const Size(1080, 2400);
tester.view.devicePixelRatio = 1.0;
addTearDown(() => tester.view.resetPhysicalSize());
SharedPreferences.setMockInitialValues({});
final prefs = await SharedPreferences.getInstance();