Created
May 29, 2019 21:27
-
-
Save JorgeCastilloPrz/89c2b4d42b34c246b82af980406206e8 to your computer and use it in GitHub Desktop.
ArcPainter with overriden paint method.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ArcPainter extends CustomPainter { | |
| ArcPainter({ | |
| this.strokeWidth, | |
| this.backgroundColor, | |
| this.valueColor, | |
| this.headValue, | |
| this.tailValue, | |
| this.stepValue, | |
| this.rotationValue | |
| }) | |
| // ... | |
| @override | |
| void paint(Canvas canvas, Size size) { | |
| // ... | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment