English 中文(简体)
速成计暂停和停止冲压
原标题:pedometer pause and stop flutter

I am building a simple pedometer application using flutter using pedometer package. When I start the application it start constanly counting steps. www.un.org/Depts/DGACM/index_spanish.htm 我想有一个子子开始并暂停计票。 (thinking about putting a timer later for how many steps in a hour)

I am so new in in flutter this i the link to the package https://pub.dev/packages/pedometer And I am using there example code : https://github.com/cph-cachet/flutter-plugins/blob/master/packages/pedometer/example/lib/main.dart

www.un.org/Depts/DGACM/index_spanish.htm 我想有一个子子开始并暂停计票。

问题回答

You have to keep track of the count yourself and remember the count when the user pressed reset like 11230 equals 0 and subtract that offset. Basically, Flutter doesn t have a way to reset the pedometer data as the app is listening to the sensor data through a stream. This answer is from google search





相关问题
Flutter App cannot be installed on Android TV

I m building a Flutter app that should support Android TV and Mobile devices. Despite Google Play shows that it is supported, I cannot install app on my MiBox device. While trying to install it, both ...

Moving the icon button to the right causes rendering issues

I am trying to align the icon button to the right of the Text field, I tried the row which made the icon button not centered vertically and now I am trying out the Stack widget. Here is my code - ...

热门标签