Finding Location / Coordinates in Dart

Issue

For a project I am doing I really need to find a location or Coordinates. I do not know how to get a Location / coordinates, I dont think that dartium supports many ways of getting locations / coordinates. I am guessing I would use navigator.getLocation but it is not working. Help?

Thanks
Luca

Solution

According to this bug report (https://code.google.com/p/dart/issues/detail?id=15866) it is not supported.
You need to build to JavaScript and run in Chrome to get the location.

When you use pub serve (as recent DartEditor versions do) you can open the same URL in Chrome you are using in Dartium.

Answered By – Günter Zöchbauer

Answer Checked By – Robin (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *