π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Update feed entry point badge to use notification icon with styled border
ashilkncc9045c71c81
diff --git a/mobile/apps/photos/lib/ui/social/widgets/feed_preview_item_widget.dart b/mobile/apps/photos/lib/ui/social/widgets/feed_preview_item_widget.dartindex 2b6d2e7d9d..5d9678e6dc 100644--- a/mobile/apps/photos/lib/ui/social/widgets/feed_preview_item_widget.dart+++ b/mobile/apps/photos/lib/ui/social/widgets/feed_preview_item_widget.dart@@ -114,7 +114,6 @@ class _PreviewAvatarStack extends StatelessWidget {left: -3,bottom: hasMultipleActors ? _overlap - 5 : -3,child: _FeedTypeIconBadge(- type: feedItem.type,size: _iconSize,colorScheme: colorScheme,),@@ -182,14 +181,12 @@ class _PreviewAvatarStack extends StatelessWidget {}}-/// Icon badge for feed type (comment, like, etc.)+/// Notification icon badge for feed entry point.class _FeedTypeIconBadge extends StatelessWidget {- final FeedItemType type;final double size;final EnteColorScheme colorScheme;const _FeedTypeIconBadge({- required this.type,required this.size,required this.colorScheme,});@@ -200,8 +197,12 @@ class _FeedTypeIconBadge extends StatelessWidget {width: size,height: size,decoration: BoxDecoration(- color: colorScheme.backgroundBase,+ color: colorScheme.backgroundElevated,shape: BoxShape.circle,+ border: Border.all(+ color: colorScheme.strokeMuted,+ width: 1,+ ),boxShadow: [BoxShadow(color: Colors.black.withValues(alpha: 0.1),@@ -211,73 +212,14 @@ class _FeedTypeIconBadge extends StatelessWidget {],),child: Center(- child: _buildIcon(),+ child: Icon(+ Icons.notifications_outlined,+ size: 14,+ color: colorScheme.textBase,+ ),),);}-- Widget _buildIcon() {- switch (type) {- case FeedItemType.photoLike:- return const Icon(- Icons.favorite,- size: 16,- color: Color(0xFF00B33C),- );- case FeedItemType.comment:- return Icon(- Icons.chat_bubble,- size: 14,- color: colorScheme.textMuted,- );- case FeedItemType.reply:- return Icon(- Icons.reply,- size: 16,- color: colorScheme.textMuted,- );- case FeedItemType.commentLike:- return Stack(- clipBehavior: Clip.none,- children: [- Icon(- Icons.chat_bubble,- size: 14,- color: colorScheme.textMuted,- ),- const Positioned(- right: -3,- bottom: -3,- child: Icon(- Icons.favorite,- size: 8,- color: Color(0xFF00B33C),- ),- ),- ],- );- case FeedItemType.replyLike:- return Stack(- clipBehavior: Clip.none,- children: [- Icon(- Icons.reply,- size: 14,- color: colorScheme.textMuted,- ),- const Positioned(- right: -3,- bottom: -3,- child: Icon(- Icons.favorite,- size: 8,- color: Color(0xFF00B33C),- ),- ),- ],- );- }- }}/// Text content for feed preview.