Closed dipanshparmar closed 1 month ago
When you're using a RectangleComponent
you don't have to override the render
method, just set the position
, size
, paint
and potentially anchor
(if you don't want top left to be where the position is defined) and it'll render the rectangle for you.
Thank you so much. That works just fine.
What happened?
So I'm trying to create a grid on the canvas and for some reason it is not rendering properly. When I render just a single row with the code provided, it works fine, but not for multiple rows.
What do you expect?
I was expecting a grid to be rendered on the canvas.
How can we reproduce this?
What steps should take to fix this?
No response
Do have an example of where the bug occurs?
No response
Relevant log output
No response
Execute in a terminal and put output into the code block below
Affected platforms
I didn't test on other platforms.
Other information
I don't even know if it a bug in the framework itself or just my code. I felt the code is correct so I though I would create a bug and get the confirmation. Sorry if it is just an issue on my end. This is the output of the code:
Are you interested in working on a PR for this?