Skip to content

Commit

Permalink
fix(mobile): make search page scrollable (immich-app#14228)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnstef99 authored and yosit committed Nov 21, 2024
1 parent 542531a commit a6a2530
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 a6a2530

Please sign in to comment.