carp-dk / carp-dk/flutter-plugins

[pedometer 3.0.0] Can't stop listen stepcount when I call function _stepCountStream.listen(onStepCount).pause()

Open
#413 0 comments 0 reactions 0 assignees View on GitHub
bugfix
Dominant language
Dart
Stars
608
Forks
735
Avg merge
1m
Merged PRs (30d)
3

Description

Hello guys, I have an error that is can't stop listen stepcount when I call function _stepCountStream.listen(onStepCount).pause().
How to pause and resume listen stepcount by two button widget ? Please help me!!!

This is my code:
![image](https://user-images.githubusercontent.com/79369571/132293458-d1028273-5de7-4321-b42f-f96aa6fb7e28.png)
![image](https://user-images.githubusercontent.com/79369571/132293515-f136205b-1991-457a-b629-b1a967e18e11.png)

And I call function pause here:
![image](https://user-images.githubusercontent.com/79369571/132294173-78a43979-3c67-4280-b425-3c39d282ada7.png)

Thanks for your lib.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.