[mob][photos] fix: hide "add new album" options when any album is selected

This commit is contained in:
Aman Raj Singh Mourya
2025-04-15 19:17:02 +05:30
parent 0057e71e02
commit daa3fcd354

View File

@@ -111,7 +111,7 @@ class _CollectionsFlexiGridViewWidgetState
albumsCountInOneRow;
final List<Widget> gridItems = [];
if (widget.shouldShowCreateAlbum) {
if (widget.shouldShowCreateAlbum && !isAnyAlbumSelected) {
gridItems.add(
NewAlbumRowItemWidget(
height: sideOfThumbnail,
@@ -168,7 +168,7 @@ class _CollectionsFlexiGridViewWidgetState
Widget _buildListView(BuildContext context, Key key) {
final List<Widget> listItems = [];
if (widget.shouldShowCreateAlbum) {
if (widget.shouldShowCreateAlbum && !isAnyAlbumSelected) {
listItems.add(
GestureDetector(
onTap: () async {