Commit 8148fb6c authored by Jasa Digital's avatar Jasa Digital

fix direction user

parent 3dfdbb0d
......@@ -1677,12 +1677,16 @@ class OutletDetail extends StatelessWidget {
),
GestureDetector(
onTap: () {
Geolocator.getCurrentPosition().then((position) {
htmlOpenLink(
'https://www.google.com/maps/dir/${position.latitude},${position.longitude}/${getLatOutlet()},${getLongOutlet()}',
self: false,
);
});
String latUser = getLatitude();
String longUser = getLongitude();
String urlDirection =
'https://www.google.com/maps/dir/$latUser,$longUser/${getLatOutlet()},${getLongOutlet()}';
// Geolocator.getCurrentPosition().then((position) {
htmlOpenLink(
urlDirection,
self: false,
);
// });
},
child: Container(
width: 150,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment