Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): make search page scrollable (#14228)

John Stef53940f7d4231
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<ScrollNotification>(
+ 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(),
+ ],
+ ),
);
}
}