I am trying to do some Gesture motion logic based on the size of a widget.
To get the size, I am calling the following code in the build method...
final RenderBox renderBox = context.findRenderObject();
This is sometimes returning null?
What is causing this to return null? Is there a more reliable way to get the size of a Widget?