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:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user