'Flutter: Is there any way to clean the contents in CustomPaint?
Recently I'm using CustomPaint
and CustomPainter
to draw line chart. I want to implement the function that, once I click a button
, the lines in CustomPaint
will disappear, just like no lines have been painted.
So what function should I put in the setState()
of the button
? Thank for your help.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|