Skip to content

Commit

Permalink
Show BenchmarkRunModeEnum in the result screen
Browse files Browse the repository at this point in the history
  • Loading branch information
anhappdev committed Jan 14, 2025
1 parent ed1a776 commit a11e145
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flutter/lib/ui/home/benchmark_result_screen.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:mlperfbench/benchmark/run_mode.dart';

import 'package:provider/provider.dart';

Expand Down Expand Up @@ -118,13 +119,19 @@ class _BenchmarkResultScreenState extends State<BenchmarkResultScreen>
shareButton = const SizedBox();
shareButtonFlex = 0;
}
String runModeString =
state.lastResult?.meta.runMode?.localizedName(l10n) ?? l10n.unknown;
Text runModeText = Text('${l10n.settingsRunMode}: $runModeString');

final infoSection = Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
deviceInfoText,
const SizedBox(height: 4),
benchmarkDateText,
const SizedBox(height: 4),
runModeText,
],
);
Widget testAgainButton = IconButton(
Expand Down

0 comments on commit a11e145

Please sign in to comment.