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
书中计算转换坐标: Alignment可以通过其坐标转换公式将其坐标转为子元素的具体偏移坐标: (Alignment.xchildWidth/2+childWidth/2, Alignment.ychildHeight/2+childHeight/2)
实际上坐标转换应该与原容器大小有关: https://api.flutter-io.cn/flutter/widgets/Align-class.html https://segmentfault.com/a/1190000041631644
The text was updated successfully, but these errors were encountered:
No branches or pull requests
书中计算转换坐标:
Alignment可以通过其坐标转换公式将其坐标转为子元素的具体偏移坐标:
(Alignment.xchildWidth/2+childWidth/2, Alignment.ychildHeight/2+childHeight/2)
实际上坐标转换应该与原容器大小有关:
https://api.flutter-io.cn/flutter/widgets/Align-class.html
https://segmentfault.com/a/1190000041631644
The text was updated successfully, but these errors were encountered: