Description
Describe the bug
The annotation is dragging but the onDragEnd
callback is not called
To Reproduce
Steps to reproduce the behavior:
- Go to map
- Press on annotation
- Drag the annotation
- 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!