════════ Exception caught by scheduler library ═════════════════════════════════
The following assertion was thrown during a scheduler callback:
Cannot get size from a render object that has not been through layout.
2
The size of this render object has not yet been determined because this render object has not yet been through layout, which typically means that the size getter was called too early in the pipeline (e.g., during the build phase) before the framework has determined the size and position of the render objects during layout.
The size getter was called for the following element: CustomPaint-[GlobalKey#c3fdf]
renderObject: RenderCustomPaint#fe468 NEEDS-LAYOUT NEEDS-PAINT
The render object from which the size was to be obtained was: RenderCustomPaint#fe468 NEEDS-LAYOUT NEEDS-PAINT
When the exception was thrown, this was the stack
════════ Exception caught by scheduler library ═════════════════════════════════ The following assertion was thrown during a scheduler callback: Cannot get size from a render object that has not been through layout. 2
The size of this render object has not yet been determined because this render object has not yet been through layout, which typically means that the size getter was called too early in the pipeline (e.g., during the build phase) before the framework has determined the size and position of the render objects during layout.
The size getter was called for the following element: CustomPaint-[GlobalKey#c3fdf] renderObject: RenderCustomPaint#fe468 NEEDS-LAYOUT NEEDS-PAINT The render object from which the size was to be obtained was: RenderCustomPaint#fe468 NEEDS-LAYOUT NEEDS-PAINT When the exception was thrown, this was the stack