π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile][photos] add spacing between items in cast sessions page
Priyanshu Dangare43091ada58e8
diff --git a/mobile/apps/photos/lib/ui/settings/cast/cast_settings_page.dart b/mobile/apps/photos/lib/ui/settings/cast/cast_settings_page.dartindex 9cfd1004a9..91bf98483c 100644--- a/mobile/apps/photos/lib/ui/settings/cast/cast_settings_page.dart+++ b/mobile/apps/photos/lib/ui/settings/cast/cast_settings_page.dart@@ -1,3 +1,4 @@+import "package:collection/collection.dart";import "package:ente_components/ente_components.dart";import "package:flutter/material.dart";import "package:hugeicons/hugeicons.dart";@@ -51,29 +52,36 @@ class _CastSettingsPageState extends State<CastSettingsPage> {}return Column(- children: snapshot.data!.map((session) {- final collection = CollectionsService.instance- .getCollectionByID(session.collectionID);- final title =- collection?.displayName ?? session.collectionID.toString();- return SettingsItem(- title: "$title on ${session.deviceIP}",- subtitle: timeago.format(session.lastUsedAt),- icon: HugeIcons.strokeRoundedTv01,- trailing: IconButtonComponent(- icon: HugeIcon(- icon: HugeIcons.strokeRoundedCancel01,- color: context.componentColors.warning,- size: IconSizes.small,- strokeWidth: 1.6,- ),- onTap: () async {- await _revokeSession(gw, session, title);- },- shouldShowSuccessConfirmation: false,- ),- );- }).toList(),+ children: snapshot.data!+ .map((session) {+ final collection = CollectionsService.instance+ .getCollectionByID(session.collectionID);+ final title =+ collection?.displayName ??+ session.collectionID.toString();+ return [+ SettingsItem(+ title: "$title on ${session.deviceIP}",+ subtitle: timeago.format(session.lastUsedAt),+ icon: HugeIcons.strokeRoundedTv01,+ trailing: IconButtonComponent(+ icon: HugeIcon(+ icon: HugeIcons.strokeRoundedCancel01,+ color: context.componentColors.warning,+ size: IconSizes.small,+ strokeWidth: 1.6,+ ),+ onTap: () async {+ await _revokeSession(gw, session, title);+ },+ shouldShowSuccessConfirmation: false,+ ),+ ),+ const SizedBox(height: 16),+ ];+ })+ .flattened+ .toList(),);},),