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

源码仓库

使用此插件的项目