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

套件詳情v0.0.3

webview_location

一個簡單的 Flutter 套件,專門用於在 Android 和 iOS 平台的 WebView 中透過地點名稱顯示 Google 地圖位置。

AndroidiOSmacOS
近 30 天下載
10
喜歡數
8
Pub 分數
160

安裝套件

flutter pub add webview_location

套件介紹

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

一個輕量級的Flutter套件,透過WebView呈現Google地圖位置,使用地點名稱,支援Android、iOS與macOS。它透過利用基於Web的Google地圖,簡化嵌入互動式地圖的過程,無需使用原生地圖SDK。非常適合需要快速地圖視覺化但不需要複雜地理定位邏輯的應用程式。該套件可透過簡單指令輕鬆整合,並依賴Web渲染以確保跨平台一致性。

適用情境

  • 按名稱顯示位置地圖
  • 在應用中嵌入 Google 地圖
  • 無需原生 SDK 的快速地圖可視化
  • 跨平台地圖整合
  • 顯示路線或地點詳情
  • 簡單的地理定位預覽

主要特色

  • 基於 WebView 的地圖渲染
  • 支援 Android、iOS 與 macOS
  • 與 flutter pub add 的輕鬆整合
  • 位置名稱到地圖的查詢
  • 輕量且依賴極少
  • 跨平台相容性

適合對象

  • 需要基本地圖顯示的應用
  • 開發者避開原生地圖SDK
  • 需要快速地圖實現的原型
  • 教育或資訊類應用
  • 旅行或位置相關服務
  • 專案地理定位複雜度有限

使用建議

  • 地圖加載需要網路連接
  • 與原生地圖相比,互動性較有限
  • 依賴於 Google 地圖網頁版的可用性
  • 不支援離線地圖
  • 對低階裝置可能產生的效能影響
  • Map UI 在不同平台上的顯示可能略有差異

原始 README

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

webview_location

pub package style: lint

A Flutter package designed to display Google Maps locations by place name in a WebView for both Android and iOS platforms. Ideal for applications that require location-based features without leaving the app interface. Easy to integrate and highly customizable, it provides a seamless user experience across different operating systems.

Feel free to connect me at:

Features Supported

See the example app for detailed implementation information.

Features Android iOS macOS Web Windows
View location :heavy_check_mark: :heavy_check_mark: :x: :x: :x:

Platform Support

Android iOS macOS Web Linux Windows
✔ ✔ :x: :x: :x: :x:

Usage

Import the package with:

import 'package:webview_location/webview_location.dart';

Add the WebViewLocation widget to your app and pass the location parameter to display the location in a WebView. The location parameter is a String that represents the place name to be displayed in the WebView. See the example app for detailed implementation information.

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。