搜索插件、代码仓与 APP 分类

插件详情v7.1.1

sensors_plus

用于访问加速度计、陀螺仪和磁力计传感器的 Flutter 插件。

AndroidiOSWeb
近 30 天下载
92.6万
喜欢数
1040
Pub 分数
160

安装插件

flutter pub add sensors_plus

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

sensors_plus 包是一个 Flutter 插件,可在 Android、iOS 和 Web 平台上提供对设备传感器(如加速度计、陀螺仪和磁力计)的访问。它能够实时收集这些硬件传感器的数据,使开发者可以构建响应设备运动和方向的交互式应用。该插件提供了统一的 API 来获取传感器数据,从而更轻松地实现手势检测、步数统计或增强现实交互等功能。该插件由 Flutter Community 维护,并可与 Flutter 项目无缝集成。

适合场景

  • 基于运动的用户界面
  • 步数统计和健身追踪
  • 增强现实应用
  • 设备方向检测
  • 游戏中的手势识别

主要特点

  • 跨平台传感器访问
  • 实时传感器数据流
  • 支持加速度计、陀螺仪和磁力计
  • 简单且一致的 API
  • Flutter Community 的积极维护

适合对象

  • 开发运动敏感应用的开发者
  • 健身和健康应用
  • 互动游戏和AR体验
  • 物联网和可穿戴设备集成

使用建议

  • 需要设备硬件支持
  • Web 支持可能有局限性
  • 后台操作依赖于平台权限
  • 传感器精度因设备而异

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Plus plugins

build

all_plugins GitHub Workflow Status Follow on Twitter


PlusPlugins is a set of Flutter plugins that is developed based on plugins, which previously existed as a part of Flutter plugins, with extra functionalities, support for more platforms and better maintenance.

Feedback and Pull Requests are most welcome!

Plugins

Table of contents:


battery_plus

battery_plus pub points

Flutter plugin for accessing information about the battery state (full, charging, discharging) on Android and iOS.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

connectivity_plus

connectivity_plus pub points

Flutter plugin for discovering the state of the network (WiFi & mobile/cellular) connectivity on Android and iOS.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

device_info_plus

device_info_plus pub points

Flutter plugin providing detailed information about the device (make, model, etc.), and Android or iOS version the app is running on.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

network_info_plus

network_info_plus pub points

Flutter plugin for discovering network info.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ❌ ✅ ✅

package_info_plus

package_info_plus pub points

Flutter plugin for querying information about the application package, such as CFBundleVersion on iOS or versionCode on Android.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

sensors_plus

sensors_plus pub points

Flutter plugin for accessing accelerometer, gyroscope, magnetometer and barometer sensors.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ❌ ✅ ❌ ❌

share_plus

share_plus pub points

Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

android_alarm_manager_plus

android_alarm_manager_plus pub points

Flutter plugin for accessing the Android AlarmManager service, and running Dart code in the background when alarms fire.

[readme] [code]

Platform Support
Android
✅

android_intent_plus

android_intent_plus pub points

Flutter plugin for launching Android Intents. Not supported on iOS.

[readme] [code]

Platform Support
Android
✅

Issues

Please file PlusPlugins specific issues, bugs, or feature requests in our issue tracker.

Plugin issues that are not specific to PlusPlugins can be filed in the Flutter issue tracker.

Contributing

If you wish to contribute a change to any of the existing plugins in this repo, please review our contribution guide and open a pull request.

Status

This repository is maintained by FlutterCommunity authors. Issues here are answered by maintainers and other community members on GitHub on a best-effort basis.

所属分类

依赖

依赖清单 1 项

  • sensors_plus_platform_interface^2.0.2

源码仓库

使用此插件的项目

所在榜单