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

fix direction user

parent 3dfdbb0d
...@@ -1677,12 +1677,16 @@ class OutletDetail extends StatelessWidget { ...@@ -1677,12 +1677,16 @@ class OutletDetail extends StatelessWidget {
), ),
GestureDetector( GestureDetector(
onTap: () { onTap: () {
Geolocator.getCurrentPosition().then((position) { String latUser = getLatitude();
htmlOpenLink( String longUser = getLongitude();
'https://www.google.com/maps/dir/${position.latitude},${position.longitude}/${getLatOutlet()},${getLongOutlet()}', String urlDirection =
self: false, 'https://www.google.com/maps/dir/$latUser,$longUser/${getLatOutlet()},${getLongOutlet()}';
); // Geolocator.getCurrentPosition().then((position) {
}); htmlOpenLink(
urlDirection,
self: false,
);
// });
}, },
child: Container( child: Container(
width: 150, 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