Skip to content

Instantly share code, notes, and snippets.

@arif-pandu
Created January 30, 2022 20:58
Show Gist options
  • Save arif-pandu/228d2a40732cd17da4756f8d679bb300 to your computer and use it in GitHub Desktop.
Save arif-pandu/228d2a40732cd17da4756f8d679bb300 to your computer and use it in GitHub Desktop.
class PolygonPainter extends CustomPainter {
@override
void paint(Canvas canvas, Size size) {
// We'll draw here
}
@override
bool shouldRepaint(CustomPainter oldDelegate) {
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment