feat(app): section bodies sit on their own surface; the whole title strip toggles; no seam above a pinned title

This commit is contained in:
2026-10-23 22:33:13 +01:00
parent 59607494fc
commit 0defe42ac1
3 changed files with 143 additions and 55 deletions
@@ -46,4 +46,19 @@ void main() {
expect(find.text('line 40'), findsNothing);
},
);
testWidgets('a tap anywhere on the title strip toggles the section', (
tester,
) async {
tester.view.physicalSize = const Size(390, 600);
tester.view.devicePixelRatio = 1;
addTearDown(tester.view.reset);
await tester.pumpWidget(const MaterialApp(home: Scaffold(body: _Host())));
expect(find.text('line 0'), findsOneWidget);
// Empty space well right of the short title, left of the chevron.
final strip = tester.getRect(find.byType(StickySectionTitle));
await tester.tapAt(Offset(strip.center.dx + 60, strip.center.dy));
await tester.pumpAndSettle();
expect(find.text('line 0'), findsNothing);
});
}