From 53940f7d423120872556f579e98b1749ee0a6fab Mon Sep 17 00:00:00 2001 From: John Stef Date: Tue, 19 Nov 2024 19:59:26 +0200 Subject: [PATCH] fix(mobile): make search page scrollable (#14228) Fixes #13657 --- mobile/lib/pages/search/search.page.dart | 44 +++++++++++++----------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/mobile/lib/pages/search/search.page.dart b/mobile/lib/pages/search/search.page.dart index 21d0e8f5c2..2fa7b5ecd1 100644 --- a/mobile/lib/pages/search/search.page.dart +++ b/mobile/lib/pages/search/search.page.dart @@ -661,29 +661,31 @@ class SearchEmptyContent extends StatelessWidget { @override Widget build(BuildContext context) { - return ListView( - shrinkWrap: true, - physics: NeverScrollableScrollPhysics(), - children: [ - SizedBox(height: 40), - Center( - child: Image.asset( - context.isDarkTheme - ? 'assets/polaroid-dark.png' - : 'assets/polaroid-light.png', - height: 125, + return NotificationListener( + onNotification: (_) => true, + child: ListView( + shrinkWrap: false, + children: [ + SizedBox(height: 40), + Center( + child: Image.asset( + context.isDarkTheme + ? 'assets/polaroid-dark.png' + : 'assets/polaroid-light.png', + height: 125, + ), ), - ), - SizedBox(height: 16), - Center( - child: Text( - "Search for your photos and videos", - style: context.textTheme.labelLarge, + SizedBox(height: 16), + Center( + child: Text( + "Search for your photos and videos", + style: context.textTheme.labelLarge, + ), ), - ), - SizedBox(height: 32), - QuickLinkList(), - ], + SizedBox(height: 32), + QuickLinkList(), + ], + ), ); } }