Merge commit 'ca6a0516'

This commit is contained in:
2026-10-25 21:55:38 +00:00
2 changed files with 69 additions and 12 deletions
+33 -9
View File
@@ -132,15 +132,35 @@ class _RunVisitPaneState extends State<RunVisitPane> {
);
}
/// The visit's name; Back is the page bar's.
Widget _bar(_VisitStyle style) => Padding(
padding: const EdgeInsets.symmetric(vertical: 8),
child: Text(
widget.visit.title,
key: const Key('run-visit-title'),
style: style.heading,
),
);
/// Keep stage identity visually distinct from the visit/run coordinates.
/// Back is the page bar's; this heading is the selected recorded stage.
Widget _bar(_VisitStyle style) {
final runId = '${widget.run['id'] ?? ''}'.trim();
return Padding(
padding: const EdgeInsetsDirectional.fromSTEB(0, 8, 0, 12),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
widget.visit.stage,
key: const Key('run-visit-title'),
style: style.stageTitle,
softWrap: true,
),
const SizedBox(height: 4),
Wrap(
spacing: 12,
runSpacing: 4,
children: [
if (widget.visit.sequence != null)
Text('Visit ${widget.visit.sequence}', style: style.muted),
if (runId.isNotEmpty) Text('Run $runId', style: style.muted),
],
),
],
),
);
}
}
/// The visit's facts several to a line: status and outcome as coloured
@@ -217,6 +237,7 @@ class _VisitStyle {
required this.value,
required this.muted,
required this.heading,
required this.stageTitle,
});
factory _VisitStyle.of(BuildContext context) {
@@ -227,6 +248,7 @@ class _VisitStyle {
value: theme.textTheme.textStyle,
muted: theme.textTheme.textStyle.copyWith(color: secondary),
heading: theme.textTheme.navTitleTextStyle,
stageTitle: theme.textTheme.navLargeTitleTextStyle,
);
}
final theme = Theme.of(context);
@@ -236,10 +258,12 @@ class _VisitStyle {
color: theme.colorScheme.onSurfaceVariant,
),
heading: theme.textTheme.titleSmall ?? const TextStyle(),
stageTitle: theme.textTheme.headlineSmall ?? const TextStyle(),
);
}
final TextStyle value;
final TextStyle muted;
final TextStyle heading;
final TextStyle stageTitle;
}