Home > Back-end >  Is possible to get coordinates from click on flutter map - FLUTTER
Is possible to get coordinates from click on flutter map - FLUTTER

Time:08-31

I'm using flutter map in my application, is possible when I click on some place on map to get coordinates from that place?

CodePudding user response:

Yes, it is possible to get coordinates from a click on a Flutter map. You can use the onTap() callback to get the coordinates of the place that was tapped.

CodePudding user response:

Use the onTap Handler

 GoogleMap(
            initialCameraPosition: CameraPosition(target: LatLng(0, 0)),
            onTap: (position) {},
          ),
        );
  • Related