We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
现在是每秒钟回调很多次,可以设置为一秒钟回调一次吗
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(); };
The text was updated successfully, but these errors were encountered:
yxwandroid
qq326646683
No branches or pull requests
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');
}
}
The text was updated successfully, but these errors were encountered: