add dot grid background

This commit is contained in:
2025-07-12 18:41:13 +00:00
parent 44e1fd3abc
commit 2894016cb7
2 changed files with 30 additions and 4 deletions
+1 -1
View File
@@ -216,7 +216,7 @@ class _CanvasRenderBox extends RenderBox
void paint(PaintingContext context, Offset canvasStartOffset) {
assert(childCount == _ssPositions.length);
// use the canvas background painter, pass it the canvas and that should handle drawing the background
_canvasBackground.paint(context.canvas, size, _scale);
_canvasBackground.paint(context.canvas, canvasStartOffset, _scale, size);
// though using ssPositionns here directly worked for me but docs using the parentData
// to get this info is the convention as child can be reordered ( though this will always