sync changes
This commit is contained in:
@@ -55,10 +55,11 @@ class ScooterDetailModalBloc
|
||||
|
||||
final routes = await _getPedestrianRoutesUsecase(
|
||||
Point(latitude: event.userLatitude, longitude: event.userLongitude),
|
||||
Point(latitude: scooter.latitude, longitude: scooter.longitude),
|
||||
Point(latitude: scooter.longitude, longitude: scooter.latitude),
|
||||
);
|
||||
|
||||
final distance = routes?.firstOrNull?.metadata.weight.walkingDistance.value;
|
||||
print("Distance is: $distance");
|
||||
final time = routes?.firstOrNull?.metadata.weight.time.value;
|
||||
|
||||
if (result is Success<Scooter>) {
|
||||
|
||||
Reference in New Issue
Block a user