π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Group link settings and adjust section spacing
AmanRajSinghMourya6b9a8300ff73
diff --git a/mobile/apps/photos/lib/ui/sharing/manage_links_widget.dart b/mobile/apps/photos/lib/ui/sharing/manage_links_widget.dartindex 79897f4702..7f03bd59e7 100644--- a/mobile/apps/photos/lib/ui/sharing/manage_links_widget.dart+++ b/mobile/apps/photos/lib/ui/sharing/manage_links_widget.dart@@ -67,7 +67,7 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {),),),- const SizedBox(height: Spacing.sm),+ const SizedBox(height: Spacing.lg),ShareMenuGroup(items: [ShareMenuItem(@@ -85,7 +85,7 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {),],),- const SizedBox(height: Spacing.sm),+ const SizedBox(height: Spacing.lg),ShareMenuGroup(items: [ShareMenuItem(@@ -101,67 +101,6 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {},),),- ShareMenuItem(- key: ValueKey("Enable comment ${url.enableComment}"),- title: context.strings.commentAndReact,- icon: HugeIcons.strokeRoundedMessage01,- trailing: ToggleSwitchComponent(- selected: url.enableComment,- onChanged: (selected) async {- await _updateUrlSettings(context, {- 'enableComment': selected,- });- },- ),- ),- ],- ),- const SizedBox(height: Spacing.sm),- ShareMenuGroup(- items: [- ShareMenuItem(- title: context.strings.linkExpiry,- subtitle: (url.hasExpiry- ? (url.isExpired- ? context.strings.linkExpired- : context.strings.linkEnabled)- : context.strings.linkNeverExpires),- titleMaxLines: 1,- icon: HugeIcons.strokeRoundedCalendar03,- showChevron: true,- onTap: () async {- await _showLinkExpirySheet(context, url);- },- ),- ],- ),- if (url.hasExpiry) ...[- ShareSectionDescription(- url.isExpired- ? context.strings.expiredLinkInfo- : context.strings.linkExpiresOn(- expiryTime: getFormattedTime(- DateTime.fromMicrosecondsSinceEpoch(url.validTill),- context: context,- ),- ),- ),- const SizedBox(height: Spacing.sm),- ],- const SizedBox(height: Spacing.sm),- ShareMenuGroup(- items: [- ShareMenuItem(- title: context.strings.linkDeviceLimit,- subtitle: url.deviceLimit == 0- ? context.strings.noLimit- : "${url.deviceLimit}",- icon: HugeIcons.strokeRoundedLaptop,- showChevron: true,- onTap: () async {- await _showDeviceLimitSheet(context, url);- },- ),ShareMenuItem(key: ValueKey("Allow downloads ${url.enableDownload}"),title: context.strings.downloadPhotos,@@ -185,6 +124,24 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {},),),+ ShareMenuItem(+ key: ValueKey("Enable comment ${url.enableComment}"),+ title: context.strings.commentAndReact,+ icon: HugeIcons.strokeRoundedMessage01,+ trailing: ToggleSwitchComponent(+ selected: url.enableComment,+ onChanged: (selected) async {+ await _updateUrlSettings(context, {+ 'enableComment': selected,+ });+ },+ ),+ ),+ ],+ ),+ const SizedBox(height: Spacing.lg),+ ShareMenuGroup(+ items: [ShareMenuItem(key: ValueKey("Allow join ${url.enableJoin}"),title: context.strings.allowJoining,@@ -200,6 +157,25 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {: null,),),+ ],+ ),+ const SizedBox(height: Spacing.lg),+ ShareMenuGroup(+ items: [+ ShareMenuItem(+ title: context.strings.linkExpiry,+ subtitle: (url.hasExpiry+ ? (url.isExpired+ ? context.strings.linkExpired+ : context.strings.linkEnabled)+ : context.strings.linkNeverExpires),+ titleMaxLines: 1,+ icon: HugeIcons.strokeRoundedCalendar03,+ showChevron: true,+ onTap: () async {+ await _showLinkExpirySheet(context, url);+ },+ ),ShareMenuItem(key: ValueKey("Password lock ${url.passwordEnabled}"),title: context.strings.password,@@ -239,9 +215,31 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {},),),+ ShareMenuItem(+ title: context.strings.linkDeviceLimit,+ subtitle: url.deviceLimit == 0+ ? context.strings.noLimit+ : "${url.deviceLimit}",+ icon: HugeIcons.strokeRoundedLaptop,+ showChevron: true,+ onTap: () async {+ await _showDeviceLimitSheet(context, url);+ },+ ),],),- const SizedBox(height: Spacing.sm),+ if (url.hasExpiry)+ ShareSectionDescription(+ url.isExpired+ ? context.strings.expiredLinkInfo+ : context.strings.linkExpiresOn(+ expiryTime: getFormattedTime(+ DateTime.fromMicrosecondsSinceEpoch(url.validTill),+ context: context,+ ),+ ),+ ),+ const SizedBox(height: Spacing.lg),ShareMenuGroup(items: [ShareMenuItem(