Skip to content

armgit / ente

Public Imported from GitHub
0

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

Use EnteLoadingWidget in social features

ashilkn1984ed8ff843
diff --git a/mobile/apps/photos/lib/ui/social/feed_screen.dart b/mobile/apps/photos/lib/ui/social/feed_screen.dart
index 51a0a2b8dd..ba7a418b67 100644
--- a/mobile/apps/photos/lib/ui/social/feed_screen.dart
+++ b/mobile/apps/photos/lib/ui/social/feed_screen.dart
@@ -8,6 +8,7 @@ import "package:photos/models/social/feed_data_provider.dart";
import "package:photos/models/social/feed_item.dart";
import "package:photos/models/social/social_data_provider.dart";
import "package:photos/theme/ente_theme.dart";
+import "package:photos/ui/common/loading_widget.dart";
import "package:photos/ui/components/buttons/icon_button_widget.dart";
import "package:photos/ui/social/comments_screen.dart";
import "package:photos/ui/social/widgets/feed_item_widget.dart";
@@ -126,7 +127,7 @@ class _FeedScreenState extends State<FeedScreen> {
),
),
body: _isLoading
- ? const Center(child: CircularProgressIndicator())
+ ? const Center(child: EnteLoadingWidget(size: 24))
: _feedItems.isEmpty
? _buildEmptyState(context)
: RefreshIndicator(
diff --git a/mobile/apps/photos/lib/ui/social/like_collection_selector_sheet.dart b/mobile/apps/photos/lib/ui/social/like_collection_selector_sheet.dart
index 4247387318..1f5073971b 100644
--- a/mobile/apps/photos/lib/ui/social/like_collection_selector_sheet.dart
+++ b/mobile/apps/photos/lib/ui/social/like_collection_selector_sheet.dart
@@ -8,6 +8,7 @@ import "package:photos/models/file/file.dart";
import "package:photos/models/social/social_data_provider.dart";
import "package:photos/services/collections_service.dart";
import "package:photos/theme/ente_theme.dart";
+import "package:photos/ui/common/loading_widget.dart";
import "package:photos/ui/components/buttons/icon_button_widget.dart";
import "package:photos/ui/notification/toast.dart";
import "package:photos/ui/viewer/file/thumbnail_widget.dart";
@@ -261,7 +262,7 @@ class _LikeCollectionSelectorSheetState
if (_isLoading)
const Padding(
padding: EdgeInsets.symmetric(vertical: 48),
- child: CircularProgressIndicator(),
+ child: EnteLoadingWidget(size: 24),
)
else if (_hasError)
_buildErrorState()
diff --git a/mobile/apps/photos/lib/ui/social/likes_bottom_sheet.dart b/mobile/apps/photos/lib/ui/social/likes_bottom_sheet.dart
index f4481e3a03..66707ff5cc 100644
--- a/mobile/apps/photos/lib/ui/social/likes_bottom_sheet.dart
+++ b/mobile/apps/photos/lib/ui/social/likes_bottom_sheet.dart
@@ -10,6 +10,7 @@ import "package:photos/models/social/reaction.dart";
import "package:photos/models/social/social_data_provider.dart";
import "package:photos/services/collections_service.dart";
import "package:photos/theme/ente_theme.dart";
+import "package:photos/ui/common/loading_widget.dart";
import "package:photos/ui/components/buttons/icon_button_widget.dart";
import "package:photos/ui/sharing/user_avator_widget.dart";
import "package:photos/ui/social/widgets/collection_selector_widget.dart";
@@ -238,7 +239,7 @@ class _LikesBottomSheetState extends State<LikesBottomSheet> {
if (_isLoading)
const Padding(
padding: EdgeInsets.symmetric(vertical: 48),
- child: CircularProgressIndicator(),
+ child: EnteLoadingWidget(size: 24),
)
else if (_hasError)
const _ErrorState()