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

如何显示和关闭loading效果 #50

Closed
xhanb opened this issue Jun 1, 2020 · 1 comment
Closed

如何显示和关闭loading效果 #50

xhanb opened this issue Jun 1, 2020 · 1 comment

Comments

@xhanb
Copy link

xhanb commented Jun 1, 2020

如何和异步接口协作,获取数据前显示loading,结束后关闭loading?
目前只能通过以下方式显示loading
extraScript: '''
chart.showLoading();
'''

@entronad
Copy link
Owner

entronad commented Jun 2, 2020

这个需求我建议你放在外面做,图表本身不含loading的图标,在图表组件上叠一个其他 flutter widget 用来显示或隐藏 loading的图标

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants