fluttercommunity / fluttercommunity/apple_maps_flutter

onDragEnd callback is not called

Open
#49 3 comments 0 reactions 1 assignee Claimed by @LuisThein View on GitHub
bug
Dominant language
Dart
Stars
83
Forks
119
PR merge metrics
No merged PRs in 30d

Description

**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(() => 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!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.