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 样式 可否自定义 #35

Closed
THJLearn opened this issue Jul 26, 2019 · 1 comment
Closed

图片加载时 loading 样式 可否自定义 #35

THJLearn opened this issue Jul 26, 2019 · 1 comment

Comments

@THJLearn
Copy link

switch (_loadState) {
case LoadState.loading:
current = Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Center(
child: _getIndicator(context),
) ,
SizedBox(
width: 5.0,
),
Text("loading...")
],
);
break;

你的源码是这样,假如我图片预览背景是黑色的,那么 “loading。。。”这几个字显示不出来,就只能看到CupertinoActivityIndicator 骗左,建议 loading样式可从外部传进去一个widget

@zmtzawqlp
Copy link
Member

建议读完文档再提问题

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