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

flutter 2.0之后类型错误 #228

Closed
wapchief opened this issue Mar 12, 2021 · 5 comments
Closed

flutter 2.0之后类型错误 #228

wapchief opened this issue Mar 12, 2021 · 5 comments

Comments

@wapchief
Copy link

Container(
width: 50.w,
height:200.h
)

flutter 2.0之后类型错误
必须返回 double,而 .w .h是 num

lizhuoyuan pushed a commit that referenced this issue Mar 15, 2021
@lizhuoyuan
Copy link
Collaborator

现在基于double扩展 应该可以了 (不过我之前也没遇到这个问题)

@MasterHiei
Copy link

@lizhuoyuan 改为基于double扩展以后不能直接通过整数值来调用了。

1.w ✖
1.0.w ✔

@lizhuoyuan
Copy link
Collaborator

尴尬, 我切分支调试一下

@lizhuoyuan
Copy link
Collaborator

lizhuoyuan commented Mar 15, 2021

@wapchief

你的问题是怎么出现的?
因为.w .h确实是返回double类型的

@lizhuoyuan
Copy link
Collaborator

#230

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

3 participants