Skip to content

armgit / ente

Public Imported from GitHub
0

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

minor change to show loading state when the search tab is loading on app start

ashilknbbec8ed63696
diff --git a/lib/ui/search_tab.dart b/lib/ui/search_tab.dart
index 2392619d76..99b0ae8b9a 100644
--- a/lib/ui/search_tab.dart
+++ b/lib/ui/search_tab.dart
@@ -76,7 +76,7 @@ class _AllSearchSectionsState extends State<AllSearchSections> {
future: InheritedAllSectionsExamples.of(context)
.allSectionsExamplesFuture,
builder: (context, snapshot) {
- if (snapshot.hasData) {
+ if (snapshot.hasData && snapshot.data!.isNotEmpty) {
if (snapshot.data!.every((element) => element.isEmpty)) {
return const Padding(
padding: EdgeInsets.only(bottom: 72),