fix(app): run detail tabs line up with the header inset

This commit is contained in:
2026-10-23 12:48:38 +01:00
parent 5b6c9dae2b
commit 1061b4460d
2 changed files with 8 additions and 0 deletions
@@ -84,6 +84,9 @@ class _RunDetailTabStripState extends State<RunDetailTabStrip> {
);
Widget _cupertinoControl() => CupertinoSegmentedControl<RunDetailTab>(
// The strip already insets 16; the control's own default inset would put
// the tabs out of line with the header and body text.
padding: EdgeInsets.zero,
groupValue: widget.selected,
onValueChanged: widget.onSelected,
children: {
@@ -37,6 +37,11 @@ void main() {
previous = center.dx;
}
expect(find.byKey(runTitleActionKey), findsOneWidget);
// The strip lines up with the header's 16px inset on both hosts.
expect(
tester.getTopLeft(find.byKey(const Key('run-detail-tabs'))).dx,
16,
);
for (final tab in [
RunDetailTab.graph,