16.2%
38.4%
2.2%
37.8%
-11.6%
37.5%
97.4%
9.3%
-11.4%
100%
14.1%
100%
100%
33%
14.2%
-48.2%
-46.7%
-11.6%
-82.9%
-84.4%
CustomPaint
widget. The problem is that every single time a small part of the editor changes, e.g. the cursor moves, I’m redrawing everything, including the text/chars, and this is slow. I’d like to, say, only update the cursor box position sometimes, while keeping the rest of what’s drawn on the Canvas
where it is without overwriting it. Is there any way I can do that (I can provide code if necessary)?
canvas.drawRect(...)
it seems to overwrite whatever else was drawn on the canvas.