From f42ae367dcf5bccd604dc9846d85fea7c03727a4 Mon Sep 17 00:00:00 2001 From: ashilkn Date: Mon, 18 Nov 2024 11:01:11 +0530 Subject: [PATCH] [mob][photos] Fix loading and error state of 'all' screen of people section --- .../lib/ui/viewer/search/result/people_section_all_page.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mobile/lib/ui/viewer/search/result/people_section_all_page.dart b/mobile/lib/ui/viewer/search/result/people_section_all_page.dart index 414600a63b..4f8d3b3eb0 100644 --- a/mobile/lib/ui/viewer/search/result/people_section_all_page.dart +++ b/mobile/lib/ui/viewer/search/result/people_section_all_page.dart @@ -6,6 +6,7 @@ import "package:photos/events/event.dart"; import "package:photos/models/search/search_result.dart"; import "package:photos/models/search/search_types.dart"; import "package:photos/theme/ente_theme.dart"; +import "package:photos/ui/common/loading_widget.dart"; import "package:photos/ui/viewer/search_tab/people_section.dart"; class PeopleSectionAllPage extends StatefulWidget { @@ -62,9 +63,9 @@ class _PeopleSectionAllPageState extends State { future: sectionData, builder: (context, snapshot) { if (snapshot.connectionState == ConnectionState.waiting) { - return const Center(child: CircularProgressIndicator()); + return const Center(child: EnteLoadingWidget()); } else if (snapshot.hasError) { - return Center(child: Text('Error: ${snapshot.error}')); + return const Center(child: Icon(Icons.error_outline_rounded)); } else if (!snapshot.hasData || snapshot.data!.isEmpty) { return const Center(child: Text('No results found.')); } else {