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

套件詳情v3.0.0+1

maps_launcher

一個簡單的 Flutter 外掛,可在所有平台開啟地圖應用程式(或瀏覽器)。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1.4萬
喜歡數
472
Pub 分數
150

安裝套件

flutter pub add maps_launcher

套件介紹

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

一個簡單的 Flutter 插件,可在所有支援的平台啟動預設地圖應用程式或瀏覽器,讓使用者能直接從應用程式中檢視位置、取得導航或探索地圖。它抽象了平台特定的實作細節,提供 Android、iOS、Web、macOS、Windows 和 Linux 上一致的 API。非常適合以最少設定和無外部相依性整合基於位置的導航。

適用情境

  • 開啟地圖中的特定位置
  • 從A點到B點的導航指引
  • 在使用者介面中整合地圖連結
  • 透過地圖啟用位置分享
  • 支援跨平台導航功能

主要特色

  • 跨平台相容性
  • 用於啟動地圖的簡單API
  • 如果地圖無法使用,則自動回退到瀏覽器
  • 支援緯度/經度和地址輸入
  • 無需額外的 SDK

適合對象

  • 需要快速地圖整合的應用程式
  • 旅行或配送應用
  • 基於位置的服務
  • 使用者友善的導航功能
  • 尋求輕量級地圖解決方案的開發者

使用建議

  • 依賴系統地圖應用的可用性
  • 地圖檢視的自訂選項有限
  • 不支援離線地圖
  • 取決於正確的設備設定
  • 某些平台可能需要使用者權限

原始 README

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

Maps launcher for Flutter

A simple package that uses url_launcher to launch the maps app with the proper scheme on all platforms.

On iOS, map links as specified by Apple are launched. On Android, the geo intent is used as documented here. For web and other platforms, the plugin will simply launch Google Maps.

Usage

import 'package:maps_launcher/maps_launcher.dart';

...

MapsLauncher.launchQuery('1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA');

MapsLauncher.launchCoordinates(37.4220041, -122.0862462);

Supported SDK versions

Consult the table provided by the url_launcher documentation to see which SDK versions maps_launcher supports.

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案