yandex_map_desktop 0.1.4
yandex_map_desktop: ^0.1.4 copied to clipboard
Yandex Maps JS API 2.1 for Flutter desktop via WebView. Windows (Edge WebView2) and macOS (WKWebView) support.
0.1.4 #
- Fix: Shortened
pubspec.yamldescription to satisfy the 60–180 character requirement (was being truncated by search engines). - Fix: Replaced deprecated
Color.valuewith.red/.green/.bluecomponent accessors in_colorToHex. - Improvement: Added
platforms: windows:, macos:topubspec.yamlso pub.dev platform detection is explicit. - Improvement: Added a web/unsupported-platform stub (
widget_stub.dart) and switched the library export to a conditionalif (dart.library.io) 'src/widget.dart'so the package compiles on all six Dart platforms without errors.
0.1.3 #
- Fix: Scroll-wheel zoom now reliably zooms toward the cursor. Previous
fix still had two bugs: (1)
wheellistener lackedcapture: trueso Yandex Maps' own listener could still win the event race; (2)getGlobalPixelCenter()returned stale values in WebView2. Replaced withcapture:true+stopImmediatePropagation()+getBounds()-based math: cursor fraction × visible bounds gives the geo point under the cursor;newCenter = cursorGeo + (center - cursorGeo) / 2^ΔZoomkeeps it stationary on screen.
0.1.2 #
- Fix: Scroll-wheel zoom now zooms toward the cursor position on Windows
(WebView2) and macOS (WKWebView). The built-in
scrollZoombehaviour was replaced with a customwheelevent handler that usesmap.getGlobalPixelCenter()+projection.fromGlobalPixels / toGlobalPixelsto keep the geo-point under the cursor stationary during zoom.
0.1.1 #
- Breaking: Renamed
YandexMapWindows→YandexMapDesktopandYandexMapWindowsController→YandexMapDesktopController.
0.1.0 #
- Initial release.
YandexMapDesktopwidget for Windows and macOS.PlacemarkMapObjectwith color, size and label support.PolylineMapObjectwith stroke color and width.YandexMapDesktopControllerwithmoveCameraandgetCameraPosition.onMapTap,onMapLongTap,onCameraPositionChangedcallbacks.- Right-click to fire
onMapLongTapon desktop. - Graceful error widget when WebView2 runtime is missing.