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
这个问题可以探讨一下,不留下解答很难受呀! 先说下我的理解,使用BuildContext是不想将Element完全暴露出去,因为Element依赖Widget,如果参数使用Element, 则Widget也会依赖Element,这就导致互相依赖,形成了高耦合,使用BuildContext作为参数,可以避免互相依赖。
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
明白了,谢谢。
No branches or pull requests
这个问题可以探讨一下,不留下解答很难受呀!
先说下我的理解,使用BuildContext是不想将Element完全暴露出去,因为Element依赖Widget,如果参数使用Element, 则Widget也会依赖Element,这就导致互相依赖,形成了高耦合,使用BuildContext作为参数,可以避免互相依赖。
The text was updated successfully, but these errors were encountered: