Show delete empty album option if there are more than three empty albums

This commit is contained in:
Neeraj Gupta 2023-01-03 14:06:45 +05:30
parent bfe09f5436
commit d8847ef572
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -124,7 +124,7 @@ class _CollectionsGalleryWidgetState extends State<CollectionsGalleryWidget>
List<CollectionWithThumbnail>? collections,
) {
final bool showDeleteAlbumsButton =
collections!.where((c) => c.thumbnail == null).length > 4;
collections!.where((c) => c.thumbnail == null).length >= 3;
final TextStyle trashAndHiddenTextStyle = Theme.of(context)
.textTheme
.subtitle1!