flutter_map_marker_popup icon indicating copy to clipboard operation
flutter_map_marker_popup copied to clipboard

How to create Draggable PopupMarker

Open S-Man42 opened this issue 1 year ago • 0 comments

Hi,

i've been using this plugin since early versions. Now I found a bug in my map tool.

Previously I was able to drag a PopupMarker by creating the marker by having a builder like this:

builder: (context) {
  return GestureDetector(
      onPanUpdate: (DragUpdateDetails details) {
        _popupLayerController.hidePopup();
        // some calculations for positioning  ...
      },
      child: icon,
    );
}

It worked fine until Flutter Map 3 and with flutter_map_marker_popup version 4.0.3

Now I did the major updater to FlutterMap 5 and your version 5.2.0 and I cannot pan anymore. The onPanUpdate event is not called anymore for my GestureDetector. Funny enough: All other events work like onTap and even onVerticalDragUpdate.

I cannot figure out what changed but I guess it is due to the breaking changes of your plugin. Do you have an idea?

Kind regards!

S-Man42 avatar Nov 12 '23 11:11 S-Man42