How to use the sensor flutter package for developing a step counter?

Posted by Jennifer | Updated on

How to use the sensor flutter package for developing a step counter?

Google Fit API can be found in one of dart.dev’s plugins: https://pub.dev/packages/googleapis. This is actually a collection of all the Google APIs, so it includes Google Fit among others.

More specifically, here at https://github.com/dart-lang/googleapis/blob/master/generated/googleapis/lib/fitness/v1.dart

And as noogui mentioned, this runs off of the REST API:

The plugin site doesn’t have examples on how to use it, only samples on how to get your auth started, so you’ll have to reference the main docs for a guide:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers