Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能够设置回调的时间吗 #132

Open
Poker-J opened this issue May 13, 2022 · 0 comments
Open

能够设置回调的时间吗 #132

Poker-J opened this issue May 13, 2022 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@Poker-J
Copy link

Poker-J commented May 13, 2022

1. 设备/系统版本:

2. bug描述:

3. 实际结果:

4. 预期结果:

现在是每秒钟回调很多次,可以设置为一秒钟回调一次吗

5. 代码说明:

listener = () {
Duration position = controller?.value?.position;
final seconds = position?.inSeconds;
print('--------------->$seconds');
if(tempSeconds == seconds){
return;
}else{
tempSeconds = seconds;
print('--------------->$tempSeconds');
if(tempSeconds % 5 == 0){
print('--------------->$tempSeconds');
}
}

  update();
};

@Poker-J Poker-J added bug Something isn't working enhancement New feature or request labels May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants