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