The problem is Paint()
Using Paint to create can be resource-intensive for a few reasons:
1. Pixel-level rendering: When you use Paint, Flutter has to manage rendering at the pixel level.
2. Double drawing: Using Paint effectively requires drawing twice: once for the stroke and once for the fill. This increases the number of rendering operations and therefore the load on the CPU.
3. Complex operations: Paint can involve complex mathematical operations for precise alignment and feathering, especially when the stroke is wider and requires more precise drawing of each character.
4. Caching issues: Widgets that use Paint can be more difficult to cache, as each frame may require a new draw, especially if the text changes or animates.
5. Hardware limitations: On weaker devices with less graphics capabilities, using Paint for complex rendering can slow down the performance of the entire system.