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

flutter_map_marker_popup 封面
套件詳情v8.1.2

flutter_map_marker_popup

flutter_map 的標記彈出視窗。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
11.7萬
喜歡數
129
Pub 分數
140

安裝套件

flutter pub add flutter_map_marker_popup

套件介紹

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

一個為 flutter_map 小部件中的標記添加互動式彈出視窗的 Flutter 套件。它允許使用者在點擊或懸停地圖標記時顯示自訂內容,例如文字、圖片或按鈕。此套件專為與 flutter_map 無縫整合而設計,支援 Android、iOS、Web、macOS、Windows 及 Linux 等多個平台。透過在地圖上直接提供上下文資訊,無需離開目前檢視即可導航,從而提升使用者體驗。

適用情境

  • 在地圖標記上顯示位置詳細資訊
  • 創建互動式地圖提示
  • 顯示動態內容,例如評論或價格
  • 增強基於地圖的儀表板
  • 為興趣點提供資訊面板

主要特色

  • 可自定義彈出內容
  • 支援輕觸和懸停互動
  • 跨平台相容性
  • 與 flutter_map 的輕鬆整合
  • 適用於不同螢幕尺寸的響應式設計

適合對象

  • 具有詳細標記資訊的地圖應用程式
  • 旅行或房地產應用
  • 基於位置的服務
  • 互動式數據可視化工具
  • 面向用戶的映射介面

使用建議

  • 需要安裝 flutter_map
  • 在小螢幕上,彈出視窗的位置可能需要調整
  • 內建樣式選項有限
  • 可能影響大量標記的效能
  • 依賴外部倉庫進行更新

原始 README

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

flutter_map_marker_popup

Makes adding marker popups to flutter_map easy.

If you have any suggestions/problems please don't hesitate to open an issue.

Getting Started

For a minimal code example have a look at SimpleMapWithPopups.

For a complete example which demonstrates all of the various options available try running the demo app in the example/ directory which results in the following:

Example

FAQ

  • Why is the popup not showing when I tap the marker?

    Make sure you don't have a GestureDetector in your Marker's builder which is preventing this plugin from detecting the Marker tap.

Clustering

If you want both marker popups and marker clustering, this plugin's popup functionality has been integrated in to the wonderful flutter_map_marker_cluster plugin.

Thanks

A huge thanks to the contributors of flutter_map and the flutter_map_marker_popup. I use them together in a large personal project and they work wonderfully.

所屬分類

依賴

依賴清單 4 項

原始碼儲存庫

使用此套件的專案