diff --git a/lib/ui/viewer/search/result/search_section_all_page.dart b/lib/ui/viewer/search/result/search_section_all_page.dart index 5618b70cb..89c704626 100644 --- a/lib/ui/viewer/search/result/search_section_all_page.dart +++ b/lib/ui/viewer/search/result/search_section_all_page.dart @@ -25,7 +25,6 @@ class SearchSectionAllPage extends StatefulWidget { class _SearchSectionAllPageState extends State { late Future> sectionData; - late final bool _showCTATile; final streamSubscriptions = []; @override @@ -47,7 +46,6 @@ class _SearchSectionAllPageState extends State { void didChangeDependencies() { super.didChangeDependencies(); sectionData = widget.sectionType.getData(limit: null, context: context); - _showCTATile = widget.sectionType.isCTAVisible; } @override @@ -163,7 +161,8 @@ class _SearchSectionAllPageState extends State { separatorBuilder: (context, index) { return const SizedBox(height: 10); }, - itemCount: sectionResults.length + (_showCTATile ? 1 : 0), + itemCount: sectionResults.length + + (widget.sectionType.isCTAVisible ? 1 : 0), physics: const BouncingScrollPhysics(), //This cache extend is needed for creating a new album //using SearchSectionCTATile to work. This is so that