登录 注册

flutterlocation

去点 Star
开发者工具数据分析与数据处理效率与办公工具 androiddartflutterflutter-plugingpsios
1,157
Stars
847
Forks
18
Watchers
5
Open Issues
MIT
许可证
Dart
语言
2017-07-07
创建时间
2026-11-06
最近更新

项目能做什么

跨平台 Flutter 实时定位插件,支持性能与功耗优化设置。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<h1 align="center">📍 Flutter Location</h1>

<p align="center">
  <strong>The easiest way to get a device's location in real-time — on every platform Flutter runs.</strong>
</p>

<p align="center">
  One simple API for GPS coordinates, live location streams and background tracking on
  <b>Android</b>, <b>iOS</b>, <b>macOS</b>, <b>Web</b>, <b>Windows</b> and <b>Linux</b>.
</p>

<p align="center">
  <a href="https://pub.dev/packages/location"><img src="https://img.shields.io/pub/v/location?label=pub&logo=dart&color=0175C2" alt="pub version"></a>
  <a href="https://pub.dev/packages/location"><img src="https://img.shields.io/pub/likes/location?logo=dart&color=0175C2" alt="pub likes"></a>
  <a href="https://pub.dev/packages/location"><img src="https://img.shields.io/pub/points/location?logo=dart&color=0175C2" alt="pub points"></a>
  <a href="https://codecov.io/gh/Lyokone/flutterlocation"><img src="https://codecov.io/gh/Lyokone/flutterlocation/branch/master/graph/badge.svg" alt="codecov"></a>
  <a href="./LICENSE"><img src="https://img.shields.io/github/license/Lyokone/flutterlocation?color=blue" alt="license"></a>
</p>

<p align="center">
  <a href="https://docs.page/Lyokone/flutterlocation">📖 Documentation</a>
  &nbsp;·&nbsp;
  <a href="https://lyokone.github.io/flutterlocation">🌐 Live web demo</a>
  &nbsp;·&nbsp;
  <a href="https://pub.dev/packages/location">📦 pub.dev</a>
  &nbsp;·&nbsp;
  <a href="https://github.com/Lyokone/flutterlocation/issues">💬 Feedback</a>
</p>

---

## ✨ Why Location?

- 🌍 **Truly cross-platform** — the same code runs on all six Flutter targets, no per-platform branching.
- ⚡ **One-line to a fix** — `await location.getLocation()` and you're done.
- 🔴 **Real-time streams** — subscribe to `onLocationChanged` for continuous updates.
- 🌙 **Background tracking** — keep receiving locations while your app is backgrounded on Android & iOS.
- 🎛️ **Tunable** — pick accuracy, update interval and distance filter to balance precision vs. battery.
- 🔔 **Customizable notification** — full control over the Android foreground-service notification.
- 📊 **Rich data** — latitude, longitude, altitude, speed, heading, accuracy, mock detection and more.
- 🛡️ **Battle-tested** — one of the most-used location plugins in the Flutter ecosystem, maintained since 2017.

## 📱 Platform support

| Feature              | Android | iOS | macOS | Web | Windows | Linux |
| :------------------- | :-----: | :-: | :---: | :-: | :-----: | :---: |
| One-time location    |   ✅    | ✅  |  ✅   | ✅  |   ✅    |  ✅   |
| Location stream      |   ✅    | ✅  |  ✅   | ✅  |   ✅    |  ✅   |
| Background updates   |   ✅    | ✅  |  —    | —   |   —     |  —    |
| Permission handling  |   ✅    | ✅  |  ✅   | ✅  |   ✅    |  ✅   |

> Windows uses `Windows.Devices.Geolocation`; Linux talks to GeoClue2 over D-Bus. Both require the system location service to be enabled.

<p align="center">
  <a href="https://www.youtube.com/watch?feature=player_embedded&v=65qbtJMltVk" target="_blank">
阅读完整原文

商业机会分析 AI 生成

企业级轻量轨迹与外勤追踪 SDK (基于 Location 封装的高级闭源/商业插件)

产品构想针对原生插件在不同 Android 厂商(保活被杀)和 iOS 后台限制的痛点,封装抗休眠保活策略、离线轨迹缓存、轨迹平滑纠偏(卡尔曼滤波)、电量自适应采样的高级商业扩展包。
核心功能深度后台保活支持、离线定位与断网重传、自动电量自适应调节策略、轨迹去噪与道路吸附/平滑算法。
目标用户外勤管理、网约车/货运、物流配送、室外巡检类 Flutter App 开发团队及中小企业。
难度/周期中等 · 1-2 个月 · 成本:开发设备(多品牌测试机约 $500-$1000)、个人时间成本。
收费模式按应用 License 年费授权(如 $199-$499/App/年),或提供源码买断版。
竞争风险各操作系统(尤其 iOS 和 Android 14+)对后台定位权限限制日趋严格,维护保活机制技术成本高且容易被系统策略破坏。
依据 已验证事实

Flutter 开箱即用定位跟踪与电子围栏后台服务 (Flutter Location + Cloud PaaS)

产品构想结合该插件提供一站式云服务,前端提供配对的轻量 Flutter 监控组件,后端提供实时轨迹看板、电子围栏告警、轨迹回放云 API。
核心功能Flutter 端集成 SDK、WebSocket 实时上报与降频、服务端电子围栏(Geo-fencing)引擎、可视化 Web 监控面板与 REST API。
目标用户需要快速上线车辆/人员定位系统的初创公司、外包开发团队、中小微企业。
难度/周期较高 · 2-3 个月 · 成本:轻量云服务器/数据库(约 $20-$50/月)、地图服务商 API 配额费用。
收费模式按追踪设备/活跃终端数量收取月度订阅费(SaaS Tier,如 $0.5-$1/设备/月)。
竞争风险市场存在高德、HyperTrack 等成熟竞品,作为独立开发者获客成本高、需凸显极致性价比和开箱即用特性。
依据 数据支持的判断

跨平台定位合规与防作弊增强插件及安全方案

产品构想针对考勤打卡、跑腿代跑、游戏等场景,基于插件提取的 Mock 状态,深度增强虚拟定位识别(Magisk/越狱/Hook 检测/基站基准校验),提供合规审计与防作弊能力。
核心功能深度 Root/越狱与虚拟定位注入检测、GNSS 原始数据异常校验、定位合规隐私策略助手(满足 GDPR/各国隐私法规)。
目标用户远程考勤软件、共享经济/外卖配送平台、反欺诈安全开发团队。
难度/周期中等 · 1 个月 · 成本:主流真机设备用于逆向与反作弊对抗测试。
收费模式商业闭源 SDK 授权或企业合规反作弊咨询服务。
竞争风险黑灰产对抗升级快,逆向与作弊手段层出不穷,需要持续跟踪安全攻防技术。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
morluto/rea 中文介绍暂未生成
Reverse engineer anything with agents, from app behavior dow
452,476 TypeScript
flutter/flutter 中文介绍暂未生成
Flutter makes it easy and fast to build beautiful apps for m
181,236 Dart
Genymobile/scrcpy 中文介绍暂未生成
Display and control your Android device
154,586 C
rustdesk/rustdesk 中文介绍暂未生成
An open-source remote desktop application designed for self-
129,057 Rust
react/react-native 中文介绍暂未生成
A framework for building native applications using React
126,899 C++
Hack-with-Github/Awesome-Hacking 中文介绍暂未生成
A collection of various awesome lists for hackers, pentester
125,276 -
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2017-07-07,近 30 天仍在推送,发布过 53 个 Release
社区活跃Star 1,157 / Fork 847 / Issue 5(数据支持,可自行核实)
许可证MIT
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/Lyokone/flutterlocation.git
cd flutterlocation
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。