paint method

  1. @override
void paint(
  1. Canvas canvas,
  2. Size size
)
override

Paint to the canvas

Implementation

@override
void paint(Canvas canvas, Size size) {
  //Keep it in the view
  canvas.clipRect(Rect.fromLTWH(0, 0, size.width, size.height));

  // Draw space or the loading screen
  _imagesLoaded ? drawSpace(canvas, size) : drawLoadingScreen(canvas, size);
}