merge(app): land run tabs alignment
This commit is contained in:
@@ -84,6 +84,9 @@ class _RunDetailTabStripState extends State<RunDetailTabStrip> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
Widget _cupertinoControl() => CupertinoSegmentedControl<RunDetailTab>(
|
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,
|
groupValue: widget.selected,
|
||||||
onValueChanged: widget.onSelected,
|
onValueChanged: widget.onSelected,
|
||||||
children: {
|
children: {
|
||||||
|
|||||||
@@ -37,6 +37,11 @@ void main() {
|
|||||||
previous = center.dx;
|
previous = center.dx;
|
||||||
}
|
}
|
||||||
expect(find.byKey(runTitleActionKey), findsOneWidget);
|
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 [
|
for (final tab in [
|
||||||
RunDetailTab.graph,
|
RunDetailTab.graph,
|
||||||
|
|||||||
Reference in New Issue
Block a user