diff --git a/lib/ui/gallery_app_bar_widget.dart b/lib/ui/gallery_app_bar_widget.dart index fcd6fa0e4..d3de99511 100644 --- a/lib/ui/gallery_app_bar_widget.dart +++ b/lib/ui/gallery_app_bar_widget.dart @@ -271,10 +271,13 @@ class _GalleryAppBarWidgetState extends State { } void _showRemoveFromCollectionSheet(BuildContext context) { + final count = widget.selectedFiles.files.length; final action = CupertinoActionSheet( title: Text("Remove " + - widget.selectedFiles.files.length.toString() + - " files from " + + count.toString() + + " file" + + (count == 1 ? "" : "s") + + " from " + widget.collection.name + "?"), actions: [ @@ -310,10 +313,12 @@ class _GalleryAppBarWidgetState extends State { } void _showDeleteSheet(BuildContext context) { + final count = widget.selectedFiles.files.length; final action = CupertinoActionSheet( title: Text("Permanently delete " + - widget.selectedFiles.files.length.toString() + - " files?"), + count.toString() + + " file" + + (count == 1 ? "?" : "s?")), actions: [ CupertinoActionSheetAction( child: Text("Delete"), diff --git a/lib/ui/share_collection_widget.dart b/lib/ui/share_collection_widget.dart index 6ad86442a..4c70aec4f 100644 --- a/lib/ui/share_collection_widget.dart +++ b/lib/ui/share_collection_widget.dart @@ -38,7 +38,9 @@ class _SharingDialogState extends State { final children = List(); if (!_showEntryField && (widget.collection == null || _sharees.length == 0)) { - children.add(Text("Click the + button to share this folder.")); + children.add(Text("Click the + button to share this " + + Collection.typeToString(widget.collection.type) + + ".")); } else { for (final email in _sharees) { children.add(EmailItemWidget(widget.collection.id, email));