1

I am developing an app in flutter using the google_maps_flutter package. I listen for user taps on the screen and record the lat/lng of that press. However, I do not want this to record the user tap when they hit the floating action button. Is there a way to disable the map behind the button?

Map Screen

  • Try using Stack widget! – Ankit Kumar Maurya Apr 19 '22 at 02:20
  • let's make it clear first 1. You want to save user location whenever the user taps on the screen in google Maps? 2. You don't want to save location when user tap on floating action button ? right? – navidanchitrali Apr 19 '22 at 09:42
  • 1. I am using stack widget. In the foreground is the floating action button. In the background is the google map. 2. Yes I want the user to be able to tap anywhere on the map and add that tapped location. The issue is that when the user clicks the floating action button to confirm their selected coordinates, it also adds the location where that floating action button was. So essentially, when the user clicks the floating action button that is overlaid with the map, I don’t want to register as a “tapped latitude/longitude” – Tyler Jewell Apr 20 '22 at 03:59
  • Also add your code for getting what you have done so far – Ankit Kumar Maurya Apr 20 '22 at 04:58

0 Answers0