搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目

暂无相关数据。