Revert "Clean up the bindings APIs (#83843)" (#86386)

This reverts commit e2490f2906.
This commit is contained in:
Ian Hickson
2021-07-13 15:47:40 -07:00
committed by GitHub
parent e2490f2906
commit c800b9c3e4
248 changed files with 1265 additions and 1614 deletions

View File

@@ -960,7 +960,7 @@ class _PaintingState extends State<Painting> with SingleTickerProviderStateMixin
}
_text = buffer.toString();
});
SchedulerBinding.instance.addPostFrameCallback((Duration duration) {
SchedulerBinding.instance?.addPostFrameCallback((Duration duration) {
if (mounted && intrinsicKey.currentContext?.size?.height != controlKey.currentContext?.size?.height) {
debugPrint('Found some text that unexpectedly renders at different heights.');
debugPrint('Text: $_text');