Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onDragEnd callback is not called #49

Open
nikiforosper opened this issue Jan 16, 2024 · 1 comment
Open

onDragEnd callback is not called #49

nikiforosper opened this issue Jan 16, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@nikiforosper
Copy link

Describe the bug
The annotation is dragging but the onDragEnd callback is not called

To Reproduce
Steps to reproduce the behavior:

  1. Go to map
  2. Press on annotation
  3. Drag the annotation
  4. No logs on onDragEnd

Expected behavior
onDragEnd should be called

Smartphone

  • Device: iPhone11
  • Version 17.2.1

Source Code

AppleMap(
  onMapCreated: (controller) => appleMapController = controller,
  rotateGesturesEnabled: false,
  initialCameraPosition: CameraPosition(target:  LatLng(lat,lng)), zoom: 5),
  gestureRecognizers: <Factory<OneSequenceGestureRecognizer>>{Factory<OneSequenceGestureRecognizer>(() => EagerGestureRecognizer())},
  annotations: {
   Annotation(
      annotationId: AnnotationId("1"),
      position: LatLng(lat,lng),
      visible: true,
      draggable: true,
      onDragEnd: (position) {
        print(position);
      },
    ),
  },
)

flutter doctor

[✓] Flutter (Channel stable, 3.16.4, on macOS 13.5.2 22G91 darwin-x64, locale en-GB)
• Flutter version 3.16.4 on channel stable at /Users/cargr/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 2e9cb0aa71 (5 weeks ago), 2023-12-11 14:35:13 -0700
• Engine revision 54a7145303
• Dart version 3.2.3
• DevTools version 2.28.4

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc4)
• Android SDK at /Users/cargr/Library/Android/sdk
• Platform android-34, build-tools 34.0.0-rc4
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15A240d
• CocoaPods version 1.14.3

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.85.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.80.0

[✓] Connected device (3 available)
• iPhone 11 (mobile) • 00008030-000E44AC1EEB802E • ios • iOS 17.2.1 21C66
• macOS (desktop) • macos • darwin-x64 • macOS 13.5.2 22G91 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 120.0.6099.216

[✓] Network resources
• All expected network resources are available.

• No issues found!

@nikiforosper nikiforosper added the bug Something isn't working label Jan 16, 2024
@DamanSoftRadixx
Copy link

@LuisThein, @nikiforosper bro, any update on this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants