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
GlobalObjectKey conTextKey = GlobalObjectKey('contenxt');
RenderBox box = conTextKey.currentContext.findRenderObject(); box.localToGlobal(Offset.zero)
这样能获取某个控制在页面,的具体位置,一般页面滚动到某个位置后,要去回到某个控制的位置上去,就得这么干, 不同于直接滚动到0,这是要滚动到不确定的位置 参考 https://blog.csdn.net/developer_zhao/article/details/86305463
The text was updated successfully, but these errors were encountered:
这个很早就有了,在WidgetUtil里面。
Sorry, something went wrong.
No branches or pull requests
GlobalObjectKey conTextKey = GlobalObjectKey('contenxt');
RenderBox box = conTextKey.currentContext.findRenderObject();
box.localToGlobal(Offset.zero)
这样能获取某个控制在页面,的具体位置,一般页面滚动到某个位置后,要去回到某个控制的位置上去,就得这么干,
不同于直接滚动到0,这是要滚动到不确定的位置
参考
https://blog.csdn.net/developer_zhao/article/details/86305463
The text was updated successfully, but these errors were encountered: