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

版本4.0.4 在web端获取屏幕的宽得到的是屏幕的高 #238

Closed
mengsiyitiaojie opened this issue Mar 29, 2021 · 25 comments
Closed

Comments

@mengsiyitiaojie
Copy link

版本4.0.4 在web端获取屏幕的宽得到的是屏幕的高 获取屏幕的高得到的是屏幕的宽

@mengsiyitiaojie
Copy link
Author

希望能解决一下

@lizhuoyuan
Copy link
Collaborator

是同一套代码只在web端是相反的吗

@mengsiyitiaojie
Copy link
Author

image

@mengsiyitiaojie
Copy link
Author

对的 导致web端和手机端不统一

@lizhuoyuan
Copy link
Collaborator

lizhuoyuan commented Mar 29, 2021

了解了我看一下

@mengsiyitiaojie
Copy link
Author

这样写在web端是正常了 但是在手机端就不对了

@lizhuoyuan
Copy link
Collaborator

方便打印一下屏幕方向吗?

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

依赖一下github的v4分支试一下。

@mengsiyitiaojie
Copy link
Author

咋依赖呢

@lizhuoyuan
Copy link
Collaborator

flutter_screenutil:
git:
url: https://github.com/OpenFlutter/flutter_screenutil
ref: v4

@mengsiyitiaojie
Copy link
Author

image

@mengsiyitiaojie
Copy link
Author

这样吗

@mengsiyitiaojie
Copy link
Author

image

@mengsiyitiaojie
Copy link
Author

要报错

@lizhuoyuan
Copy link
Collaborator

lizhuoyuan commented Mar 29, 2021

缩进

  flutter_screenutil:
    git:
      url: https://github.com/OpenFlutter/flutter_screenutil
      ref: v4

@mengsiyitiaojie
Copy link
Author

可以了 v4版本正常

@mengsiyitiaojie
Copy link
Author

image

@lizhuoyuan
Copy link
Collaborator

那稍后就换成 4.0.4+1 版本就好了

@mengsiyitiaojie
Copy link
Author

image

lizhuoyuan pushed a commit that referenced this issue Mar 29, 2021
@mengsiyitiaojie
Copy link
Author

现在更新了吗

@lizhuoyuan
Copy link
Collaborator

是的

lizhuoyuan pushed a commit that referenced this issue Mar 29, 2021
@mengsiyitiaojie
Copy link
Author

image

@mengsiyitiaojie
Copy link
Author

要报错

@lizhuoyuan
Copy link
Collaborator

我这边显示已经有了
image

可能要稍后再试吧

@mengsiyitiaojie
Copy link
Author

可以了

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