WidgetsBinding.instance.addPostFrameCallback((call) {
width = context.size.width;
height = context.size.height;
button = context.findRenderObject();
overlay = Overlay.of(context).context.findRenderObject();
});
═══════ Exception caught by scheduler library ═════════════════════════════════
The getter 'size' was called on null.
Receiver: null
Tried calling: size
这个地方进入页面后开始自动滚动则会有上面的异常抛出
WidgetsBinding.instance.addPostFrameCallback((call) {
width = context.size.width;
height = context.size.height;
button = context.findRenderObject();
overlay = Overlay.of(context).context.findRenderObject();
});
═══════ Exception caught by scheduler library ═════════════════════════════════
The getter 'size' was called on null.
Receiver: null
Tried calling: size
这个地方进入页面后开始自动滚动则会有上面的异常抛出