Skip to content

Commit

Permalink
[mob][photos] Fix loading and error state of 'all' screen of people s…
Browse files Browse the repository at this point in the history
…ection
  • Loading branch information
ashilkn committed Nov 18, 2024
1 parent 4f86ca9 commit f42ae36
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -62,9 +63,9 @@ class _PeopleSectionAllPageState extends State<PeopleSectionAllPage> {
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 {
Expand Down

0 comments on commit f42ae36

Please sign in to comment.