|
|
@@ -34,14 +34,14 @@ class LocationsPhotoPage extends BasePage<LocationsPhotoController> {
|
|
|
padding: EdgeInsets.symmetric(horizontal: 16.w),
|
|
|
children: [
|
|
|
...controller.photoGroups.map((group) => Column(
|
|
|
- children: [
|
|
|
- _buildPhotoGroup(
|
|
|
- title: group.title,
|
|
|
- imageCount: group.imageCount,
|
|
|
- ),
|
|
|
- SizedBox(height: 15.h),
|
|
|
- ],
|
|
|
- ))
|
|
|
+ children: [
|
|
|
+ _buildPhotoGroup(
|
|
|
+ title: group.title,
|
|
|
+ imageCount: group.imageCount,
|
|
|
+ ),
|
|
|
+ SizedBox(height: 15.h),
|
|
|
+ ],
|
|
|
+ ))
|
|
|
],
|
|
|
);
|
|
|
}),
|
|
|
@@ -58,6 +58,7 @@ class LocationsPhotoPage extends BasePage<LocationsPhotoController> {
|
|
|
),
|
|
|
]);
|
|
|
}
|
|
|
+
|
|
|
Widget _titleCard() {
|
|
|
return Container(
|
|
|
alignment: Alignment.centerLeft,
|
|
|
@@ -119,13 +120,15 @@ class LocationsPhotoPage extends BasePage<LocationsPhotoController> {
|
|
|
),
|
|
|
],
|
|
|
),
|
|
|
- SizedBox(child:
|
|
|
- GestureDetector(
|
|
|
+ SizedBox(
|
|
|
+ child: GestureDetector(
|
|
|
// onTap: () => controller.toggleImageSelection(title, 0),
|
|
|
child: Obx(() {
|
|
|
- final group = controller.photoGroups
|
|
|
- .firstWhere((g) => g.title == title);
|
|
|
+ final group =
|
|
|
+ controller.photoGroups.firstWhere((g) => g.title == title);
|
|
|
final imagePath = group.images[0];
|
|
|
+ final location = group.location?.value?? '';
|
|
|
+
|
|
|
return Stack(
|
|
|
children: [
|
|
|
Container(
|
|
|
@@ -137,32 +140,28 @@ class LocationsPhotoPage extends BasePage<LocationsPhotoController> {
|
|
|
borderRadius: BorderRadius.circular(8.r),
|
|
|
),
|
|
|
image: DecorationImage(
|
|
|
- image:
|
|
|
- AssetEntityImageProvider(imagePath),
|
|
|
+ image: AssetEntityImageProvider(imagePath),
|
|
|
fit: BoxFit.cover,
|
|
|
),
|
|
|
),
|
|
|
),
|
|
|
-
|
|
|
-
|
|
|
Positioned(
|
|
|
left: 1.w,
|
|
|
right: 1.w,
|
|
|
bottom: 16.sp,
|
|
|
- child:Text(
|
|
|
- 'Beijing',
|
|
|
- textAlign: TextAlign.center,
|
|
|
- style: TextStyle(
|
|
|
- color: Colors.white,
|
|
|
- fontSize: 20.sp,
|
|
|
- fontWeight: FontWeight.w500,
|
|
|
- ),
|
|
|
- ))
|
|
|
+ child: Text(
|
|
|
+ location,
|
|
|
+ textAlign: TextAlign.center,
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.white,
|
|
|
+ fontSize: 20.sp,
|
|
|
+ fontWeight: FontWeight.w500,
|
|
|
+ ),
|
|
|
+ ))
|
|
|
],
|
|
|
);
|
|
|
}),
|
|
|
),
|
|
|
-
|
|
|
),
|
|
|
],
|
|
|
),
|