fluttercommunity / fluttercommunity/plus_plugins

[Request]: Adjusting sample rate for web with Sensors Plus plugin

Open
#1,280 0 comments 0 reactions 0 assignees View on GitHub
enhancement triage
Dominant language
Dart
Stars
1.9k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

### Plugin

Sensors Plus

### Use case

There has been a discussion about adjusting the sample rate for sensor data in the Sensors_plus flutter package (https://github.com/flutter/flutter/issues/25971). (Sensors_plus is the only sensor package for web).

Following the above thread, I managed to adjust the rate when building for Android, by changing SENSOR_DELAY_NORMAL to SENSOR_DELAY_GAME.

Now my question is: Is there a way to adjust the sample rate for sensordata when building for web?

### Proposal

Be able to adjust the sample rate / update rate for sensor data when building for web? For the sensors in the package (Gyroscope, Accelerometer etc.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.