diff --git a/app/lib/features/runs/ui/run_detail_tab_bodies.dart b/app/lib/features/runs/ui/run_detail_tab_bodies.dart index e4461362..44dca4ef 100644 --- a/app/lib/features/runs/ui/run_detail_tab_bodies.dart +++ b/app/lib/features/runs/ui/run_detail_tab_bodies.dart @@ -160,7 +160,9 @@ Widget _materialRow(BuildContext context, DetailSummaryRow row) { ), subtitle: SelectableText( row.value, - style: row.monospace ? base?.copyWith(fontFamily: appMonospaceFamily) : base, + style: row.monospace + ? base?.copyWith(fontFamily: appMonospaceFamily) + : base, ), ); } @@ -189,7 +191,9 @@ Widget _materialBlock(BuildContext context, DetailSummaryRow row) { ), child: SelectableText( row.value, - style: theme.textTheme.bodySmall?.copyWith(fontFamily: appMonospaceFamily), + style: theme.textTheme.bodySmall?.copyWith( + fontFamily: appMonospaceFamily, + ), ), ), ], @@ -280,7 +284,9 @@ Widget _cupertinoRow(BuildContext context, DetailSummaryRow row) { title: Text(row.label), subtitle: Text( row.value, - style: row.monospace ? style.copyWith(fontFamily: appMonospaceFamily) : null, + style: row.monospace + ? style.copyWith(fontFamily: appMonospaceFamily) + : null, ), ); } @@ -309,7 +315,9 @@ Widget _cupertinoBlock(BuildContext context, DetailSummaryRow row) { ), child: Text( row.value, - style: theme.textTheme.textStyle.copyWith(fontFamily: appMonospaceFamily), + style: theme.textTheme.textStyle.copyWith( + fontFamily: appMonospaceFamily, + ), ), ), ], diff --git a/app/test/features/runs/ui/run_detail_summary_fields_test.dart b/app/test/features/runs/ui/run_detail_summary_fields_test.dart index 795e427d..4ede97f0 100644 --- a/app/test/features/runs/ui/run_detail_summary_fields_test.dart +++ b/app/test/features/runs/ui/run_detail_summary_fields_test.dart @@ -6,6 +6,7 @@ import 'package:pipelines_app/features/pipelines/pipeline_format.dart'; import 'package:pipelines_app/features/runs/ui/run_detail_summary_fields.dart'; import 'run_detail_graph_support.dart'; +import 'package:pipelines_app/ui/text/monospace.dart'; /// A run whose recorded facts fill every Summary row. JsonMap recordedRunFixture() => { @@ -156,12 +157,12 @@ void main() { final hash = tester.widget( find.widgetWithText(SelectableText, 'abc123def456'), ); - expect(hash.style?.fontFamily, 'monospace'); + expect(hash.style?.fontFamily, appMonospaceFamily); } else { final tile = tester.widget( find.byKey(const ValueKey('run-detail-summary-content-hash')), ); - expect((tile.subtitle! as Text).style?.fontFamily, 'monospace'); + expect((tile.subtitle! as Text).style?.fontFamily, appMonospaceFamily); } });