You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello I'm making an app that collects data from all sensors, but unfotunatelly UserAccelerometerEvent is not working, the other sensors are working fine, but UserAccelerometerEvent is only working when the app is in the background.
The card bellow is only updated when I leave the app and then return to it.
` DynamicCard(
streamCard: StreamBuilder(
stream: accelerometerEventStream(),
builder: (context, snapshot) {
if (snapshot.hasData) {
accelerometeRawX = snapshot.data!.x;
accelerometeRawY = snapshot.data!.y;
accelerometeRawZ = snapshot.data!.z;
What is your question?
Hello I'm making an app that collects data from all sensors, but unfotunatelly UserAccelerometerEvent is not working, the other sensors are working fine, but UserAccelerometerEvent is only working when the app is in the background.
The card bellow is only updated when I leave the app and then return to it.
` DynamicCard(
streamCard: StreamBuilder(
stream: accelerometerEventStream(),
builder: (context, snapshot) {
if (snapshot.hasData) {
accelerometeRawX = snapshot.data!.x;
accelerometeRawY = snapshot.data!.y;
accelerometeRawZ = snapshot.data!.z;
Checklist before submitting a question
flutter pub upgrade
flutter clean
The text was updated successfully, but these errors were encountered: