搜尋套件、儲存庫與 APP 分類

套件詳情v0.3.4

animated_marker

在位置更新之間平滑地動畫顯示 Google 地圖標記。

AndroidiOSWeb
近 30 天下載
3890
喜歡數
32
Pub 分數
160

安裝套件

flutter pub add animated_marker

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

animated_marker 包透過實現標記位置之間的平滑動畫過渡,增強了 Flutter 中 Google 地圖的整合。它會自動處理位置更新,實現流暢的移動效果,從而在即時追蹤或導航情境中提升使用者體驗。此套件專為尋求精緻地圖互動但無需複雜自訂動畫邏輯的開發者設計,可在 Android、iOS 和 Web 平台順暢運作。該套件輕量且易於整合,非常適合需要動態標記行為的應用程式。

適用情境

  • 即時GPS追蹤
  • 導航應用
  • 共乘應用程式
  • 即時位置分享
  • 基於地圖的儀表板

主要特色

  • 平滑標記動畫
  • 自動位置插值
  • 跨平台支援(Android、iOS、Web)
  • 簡單的 API 結合
  • 輕量且高效

適合對象

  • 開發即時追蹤功能的開發者
  • 需要在位置變更時提供視覺反饋的應用程式
  • 使用 Google 地圖的 Flutter 項目
  • 在地圖介面中優先考慮使用者體驗的團隊

使用建議

  • 需要設定 Google Maps SDK
  • 僅限標記特定動畫
  • 不適用於非地理定位使用案例
  • 依賴於準確的位置資料輸入

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Animated Marker

AnimatedMarker smoothly animates google_maps_flutter markers whenever their position or rotation changes.

Features

  • Animate marker movement and rotation automatically.
  • Keep non-moving markers separate via staticMarkers.
  • Tune motion with duration, curve, and fps.
  • Plug into any GoogleMap via a simple builder.

Installation

dependencies:
  animated_marker: ^0.2.0

Usage

AnimatedMarker(
  staticMarkers: staticMarkers,
  animatedMarkers: animatedMarkers,
  duration: const Duration(seconds: 3),
  fps: 30,
  curve: Curves.easeOut,
  builder: (context, markers) {
    return GoogleMap(
      initialCameraPosition: const CameraPosition(
        target: LatLng(37.77483, -122.41942),
        zoom: 13,
      ),
      markers: markers,
    );
  },
);

Use this widget when your marker set is driven by live updates (vehicles, delivery tracking, moving assets, etc.) and you want smooth transitions instead of marker jumps.

所屬分類

依賴

依賴清單 1 項

  • google_maps_flutter_platform_interface^2.17.0

原始碼儲存庫

使用此套件的專案

暫無相關資料。