style(app): quiet section headings without bands or stripes

Review finding F4: section headings were a solid surfaceContainerHighest
band with a 3px accent stripe. They are now a muted grouped-list label
on the page background; pinned headings keep a light translucent scrim.
Implemented by pipeline run #201 (Code/Review on Terra); its UIReview
blocked on a stale probe, verified by the manager instead.
This commit is contained in:
2026-10-31 03:07:57 +00:00
parent ea0f22dfc7
commit edecc59bfc
3 changed files with 70 additions and 80 deletions
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pipelines_app/ui/layout/section_heading.dart';
import 'package:pipelines_app/ui/layout/sticky_section.dart';
class _Host extends StatefulWidget {
@@ -61,4 +62,21 @@ void main() {
await tester.pumpAndSettle();
expect(find.text('line 0'), findsNothing);
});
testWidgets('section headings use a quiet label without a filled band', (
tester,
) async {
await tester.pumpWidget(
const MaterialApp(
home: Scaffold(body: SectionHeading(title: 'Today')),
),
);
final heading = tester.widget<Text>(find.text('Today'));
final scheme = Theme.of(tester.element(find.text('Today'))).colorScheme;
expect(heading.style!.color, scheme.onSurfaceVariant);
expect(heading.style!.fontWeight, FontWeight.w600);
expect(heading.style!.letterSpacing, 0.4);
expect(find.byType(DecoratedBox), findsNothing);
});
}