CHECKPOINT: Pre-Phase-8 telemetry validation baseline
This commit is contained in:
parent
a689adf5f2
commit
98f3ea9f35
|
|
@ -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())),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue