|
|
@@ -46,6 +46,11 @@ class SimilarPhotoPage extends BasePage<SimilarPhotoController> {
|
|
|
_buildPhotoGroup(
|
|
|
imagesList: group.images,
|
|
|
imageCount: group.images.length,
|
|
|
+ selectCount:group.selectedImages
|
|
|
+ .asMap()
|
|
|
+ .entries
|
|
|
+ .where((entry) => entry.value && entry.key < group.images.length)
|
|
|
+ .length,
|
|
|
),
|
|
|
SizedBox(height: 15.h),
|
|
|
],
|
|
|
@@ -175,6 +180,7 @@ class SimilarPhotoPage extends BasePage<SimilarPhotoController> {
|
|
|
Widget _buildPhotoGroup({
|
|
|
required List<AssetEntity> imagesList,
|
|
|
required int imageCount,
|
|
|
+ required int selectCount,
|
|
|
}) {
|
|
|
return Container(
|
|
|
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
|
|
@@ -440,14 +446,14 @@ class SimilarPhotoPage extends BasePage<SimilarPhotoController> {
|
|
|
),
|
|
|
),
|
|
|
child: Center(
|
|
|
- child: Obx(() => Text(
|
|
|
- 'Move ${controller.getGroupByImages(imagesList).selectedImages.where((e) => e).length} to trash',
|
|
|
- style: TextStyle(
|
|
|
- color: Colors.white,
|
|
|
- fontSize: 16.sp,
|
|
|
- fontWeight: FontWeight.w500,
|
|
|
- ),
|
|
|
- )),
|
|
|
+ child: Text(
|
|
|
+ 'Move $selectCount to trash',
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.white,
|
|
|
+ fontSize: 16.sp,
|
|
|
+ fontWeight: FontWeight.w500,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
),
|
|
|
),
|
|
|
)
|