merge(app): land design-search

This commit is contained in:
2026-10-23 12:31:58 +01:00
3 changed files with 4 additions and 4 deletions
@@ -70,8 +70,7 @@ class CupertinoSearchBody extends StatelessWidget {
];
case SearchBodyKind.empty:
return [
SliverFillRemaining(
hasScrollBody: false,
SliverToBoxAdapter(
child: _CupertinoMessage(message: controller.emptyMessage!),
),
];
@@ -61,8 +61,7 @@ class MaterialSearchBody extends StatelessWidget {
];
case SearchBodyKind.empty:
return [
SliverFillRemaining(
hasScrollBody: false,
SliverToBoxAdapter(
child: _SearchMessage(message: controller.emptyMessage!),
),
];
@@ -77,6 +77,8 @@ void main() {
expect(gateway.calls, hasLength(1));
expect(find.text('No matches for "zzz".'), findsOneWidget);
expect(find.text('Searching…'), findsNothing);
final message = tester.getRect(find.text('No matches for "zzz".'));
expect(message.top, lessThan(380));
});
testWidgets(