paint method
void
paint(
- PaintingContext context,
- Offset center, {
- required RenderBox parentBox,
- required SfSliderThemeData themeData,
- SfRangeValues? currentValues,
- dynamic currentValue,
- required Paint? paint,
- required Animation<
double> animation, - required SfThumb? thumb,
Paints the overlay based on the values passed to it.
Implementation
void paint(PaintingContext context, Offset center,
{required RenderBox parentBox,
required SfSliderThemeData themeData,
SfRangeValues? currentValues,
dynamic currentValue,
required Paint? paint,
required Animation<double> animation,
required SfThumb? thumb}) {
final double radius = getPreferredSize(themeData).width / 2;
final Tween<double> tween = Tween<double>(begin: 0.0, end: radius);
if (paint == null) {
paint = Paint();
paint.color = themeData.overlayColor!;
}
context.canvas.drawCircle(center, tween.evaluate(animation), paint);
}