yandex_map_desktop 0.1.4 copy "yandex_map_desktop: ^0.1.4" to clipboard
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.yaml description to satisfy the 60–180 character requirement (was being truncated by search engines).
  • Fix: Replaced deprecated Color.value with .red/.green/.blue component accessors in _colorToHex.
  • Improvement: Added platforms: windows:, macos: to pubspec.yaml so pub.dev platform detection is explicit.
  • Improvement: Added a web/unsupported-platform stub (widget_stub.dart) and switched the library export to a conditional if (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) wheel listener lacked capture: true so Yandex Maps' own listener could still win the event race; (2) getGlobalPixelCenter() returned stale values in WebView2. Replaced with capture:true + stopImmediatePropagation() + getBounds()-based math: cursor fraction × visible bounds gives the geo point under the cursor; newCenter = cursorGeo + (center - cursorGeo) / 2^ΔZoom keeps 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 scrollZoom behaviour was replaced with a custom wheel event handler that uses map.getGlobalPixelCenter() + projection.fromGlobalPixels / toGlobalPixels to keep the geo-point under the cursor stationary during zoom.

0.1.1 #

  • Breaking: Renamed YandexMapWindowsYandexMapDesktop and YandexMapWindowsControllerYandexMapDesktopController.

0.1.0 #

  • Initial release.
  • YandexMapDesktop widget for Windows and macOS.
  • PlacemarkMapObject with color, size and label support.
  • PolylineMapObject with stroke color and width.
  • YandexMapDesktopController with moveCamera and getCameraPosition.
  • onMapTap, onMapLongTap, onCameraPositionChanged callbacks.
  • Right-click to fire onMapLongTap on desktop.
  • Graceful error widget when WebView2 runtime is missing.
0
likes
160
points
12
downloads

Documentation

API reference

Publisher

verified publisherxlkv.uz

Weekly Downloads

Yandex Maps JS API 2.1 for Flutter desktop via WebView. Windows (Edge WebView2) and macOS (WKWebView) support.

Repository (GitHub)
View/report issues

Topics

#map #yandex #windows #macos #webview

License

MIT (license)

Dependencies

flutter, webview_flutter, webview_windows

More

Packages that depend on yandex_map_desktop