mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Developers need to get the size of the BuildContext sufficiently often that we should provide a convenient getter for the value. Having this getter is also an opportunity to catch common mistakes and provide useful error messages that guide developers towards better patterns. Fixes #2321