render method
How to draw this widget on the canvas
Implementation
@override
void render(canvas, context) {
canvas.save();
canvas.clipRect(Rect.fromLTWH(0, 0, bounds.x, bounds.y));
childBuild?.render(canvas, context);
canvas.restore();
}
How to draw this widget on the canvas
@override
void render(canvas, context) {
canvas.save();
canvas.clipRect(Rect.fromLTWH(0, 0, bounds.x, bounds.y));
childBuild?.render(canvas, context);
canvas.restore();
}