Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix bug in creating a new album from SearchSectionCTATile in 'view all' of Album search section

ashilkn8d7e7b4a0c7e
diff --git a/lib/ui/viewer/search/result/search_section_result_page.dart b/lib/ui/viewer/search/result/search_section_result_page.dart
index 7de93619e0..ef23d3bf1d 100644
--- a/lib/ui/viewer/search/result/search_section_result_page.dart
+++ b/lib/ui/viewer/search/result/search_section_result_page.dart
@@ -102,6 +102,12 @@ class _SearchSectionResultPageState extends State<SearchSectionResultPage> {
},
itemCount: sectionResults.length + (_showCTATile ? 1 : 0),
physics: const BouncingScrollPhysics(),
+ //This cache extend is needed for creating a new album
+ //using SearchSectionCTATile to work. This is so that
+ //SearchSectionCTATile doesn't get disposed when keyboard
+ //is open and the widget is out of view.
+ cacheExtent:
+ widget.sectionType == SectionType.album ? 400 : null,
),
),
),