π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add maxLines and softWrap properties to text widgets for better text handling
AmanRajSinghMouryaf65c129a0632
diff --git a/mobile/apps/photos/lib/ui/collections/album/list_item.dart b/mobile/apps/photos/lib/ui/collections/album/list_item.dartindex 1ef155b000..be22a048d2 100644--- a/mobile/apps/photos/lib/ui/collections/album/list_item.dart+++ b/mobile/apps/photos/lib/ui/collections/album/list_item.dart@@ -86,6 +86,8 @@ class AlbumListItemWidget extends StatelessWidget {title: Text(collection.displayName,style: TextStyles.body.copyWith(color: colors.textBase),+ maxLines: 1,+ softWrap: false,overflow: TextOverflow.ellipsis,),subtitle: FutureBuilder<int>(@@ -158,6 +160,8 @@ class AlbumListItemWidget extends StatelessWidget {child: Text(text,style: textStyle,+ maxLines: 1,+ softWrap: false,overflow: TextOverflow.ellipsis,),),diff --git a/mobile/apps/photos/lib/ui/collections/album/new_list_item.dart b/mobile/apps/photos/lib/ui/collections/album/new_list_item.dartindex 564df31297..3f5485e805 100644--- a/mobile/apps/photos/lib/ui/collections/album/new_list_item.dart+++ b/mobile/apps/photos/lib/ui/collections/album/new_list_item.dart@@ -42,6 +42,9 @@ class NewAlbumListItemWidget extends StatelessWidget {title: Text(AppLocalizations.of(context).addNew,style: TextStyles.body.copyWith(color: colors.textLight),+ maxLines: 1,+ softWrap: false,+ overflow: TextOverflow.ellipsis,),);}diff --git a/mobile/apps/photos/lib/ui/collections/album/new_row_item.dart b/mobile/apps/photos/lib/ui/collections/album/new_row_item.dartindex c2049bc803..ba35d73b36 100644--- a/mobile/apps/photos/lib/ui/collections/album/new_row_item.dart+++ b/mobile/apps/photos/lib/ui/collections/album/new_row_item.dart@@ -91,6 +91,9 @@ class NewAlbumRowItemWidget extends StatelessWidget {style: TextStyles.body.copyWith(color: colors.textLight,),+ maxLines: 1,+ softWrap: false,+ overflow: TextOverflow.ellipsis,),],),diff --git a/mobile/apps/photos/lib/ui/collections/album/row_item.dart b/mobile/apps/photos/lib/ui/collections/album/row_item.dartindex de66534ec9..07afe1d2d8 100644--- a/mobile/apps/photos/lib/ui/collections/album/row_item.dart+++ b/mobile/apps/photos/lib/ui/collections/album/row_item.dart@@ -275,6 +275,8 @@ class AlbumRowItemWidget extends StatelessWidget {style: TextStyles.body.copyWith(color: componentColors.textBase,),+ maxLines: 1,+ softWrap: false,overflow: TextOverflow.ellipsis,),const SizedBox(height: _titleToSubtitleSpacing),@@ -283,6 +285,8 @@ class AlbumRowItemWidget extends StatelessWidget {style: TextStyles.mini.copyWith(color: componentColors.textLight,),+ maxLines: 1,+ softWrap: false,overflow: TextOverflow.ellipsis,),],@@ -293,6 +297,8 @@ class AlbumRowItemWidget extends StatelessWidget {style: TextStyles.body.copyWith(color: componentColors.textBase,),+ maxLines: 1,+ softWrap: false,overflow: TextOverflow.ellipsis,);}@@ -303,6 +309,8 @@ class AlbumRowItemWidget extends StatelessWidget {style: TextStyles.body.copyWith(color: componentColors.textBase,),+ maxLines: 1,+ softWrap: false,overflow: TextOverflow.ellipsis,),),diff --git a/mobile/apps/photos/lib/ui/collections/device/device_folder_list_item.dart b/mobile/apps/photos/lib/ui/collections/device/device_folder_list_item.dartindex 06c370b14a..3cc8c338d7 100644--- a/mobile/apps/photos/lib/ui/collections/device/device_folder_list_item.dart+++ b/mobile/apps/photos/lib/ui/collections/device/device_folder_list_item.dart@@ -54,6 +54,8 @@ class DeviceFolderListItem extends StatelessWidget {),title: Text(deviceCollection.name,+ maxLines: 1,+ softWrap: false,overflow: TextOverflow.ellipsis,style: TextStyles.body.copyWith(color: componentColors.textBase,@@ -63,6 +65,8 @@ class DeviceFolderListItem extends StatelessWidget {AppLocalizations.of(context).itemCount(count: deviceCollection.count,),+ maxLines: 1,+ softWrap: false,overflow: TextOverflow.ellipsis,style: TextStyles.mini.copyWith(color: componentColors.textLight,diff --git a/mobile/apps/photos/lib/ui/collections/device/device_folder_row_item.dart b/mobile/apps/photos/lib/ui/collections/device/device_folder_row_item.dartindex 0d965a1a10..c72f466724 100644--- a/mobile/apps/photos/lib/ui/collections/device/device_folder_row_item.dart+++ b/mobile/apps/photos/lib/ui/collections/device/device_folder_row_item.dart@@ -88,6 +88,8 @@ class DeviceFolderRowItem extends StatelessWidget {deviceCollection.name,textAlign: TextAlign.left,style: TextStyles.body.copyWith(color: colors.textBase),+ maxLines: 1,+ softWrap: false,overflow: TextOverflow.ellipsis,),),@@ -100,6 +102,8 @@ class DeviceFolderRowItem extends StatelessWidget {),textAlign: TextAlign.left,style: TextStyles.mini.copyWith(color: colors.textLight),+ maxLines: 1,+ softWrap: false,overflow: TextOverflow.ellipsis,),),