Skip to content

Commit

Permalink
fix(mobile): make search page scrollable (#14228)
Browse files Browse the repository at this point in the history
Fixes #13657
  • Loading branch information
johnstef99 authored Nov 19, 2024
1 parent b66c53b commit 53940f7
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions mobile/lib/pages/search/search.page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
],
),
);
}
}
Expand Down

0 comments on commit 53940f7

Please sign in to comment.