update fixes
This commit is contained in:
@ -65,6 +65,7 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
}
|
||||
} else {
|
||||
GeoJsonFeature<dynamic> gf = indexController.currentFeature[0];
|
||||
print("=== photo sss ${gf.properties!["photos"]}");
|
||||
if (gf.properties!["photos"] == null || gf.properties!["photos"] == "") {
|
||||
return const Image(image: AssetImage('assets/images/empty_image.png'));
|
||||
} else {
|
||||
@ -80,9 +81,11 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
},
|
||||
);
|
||||
} else {
|
||||
String imageUrl = Uri.encodeFull(
|
||||
'$serverUrl/media/compressed/${gf.properties!["photos"]}');
|
||||
return Image(
|
||||
image: NetworkImage(
|
||||
'$serverUrl/media/compressed/${gf.properties!["photos"]}',
|
||||
imageUrl,
|
||||
),
|
||||
errorBuilder: (BuildContext context, Object exception,
|
||||
StackTrace? stackTrace) {
|
||||
@ -495,8 +498,7 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
// ),
|
||||
|
||||
destinationController.rogainingCounted.value == true &&
|
||||
destination.cp == -1 &&
|
||||
destinationController.distanceToStart() <= 500
|
||||
destination.cp == -1
|
||||
? ElevatedButton(
|
||||
onPressed: () async {
|
||||
destinationController.isAtGoal.value = true;
|
||||
|
||||
Reference in New Issue
Block a user