knobRadius property

double knobRadius
final

Adjusts the knob radius in needle pointer.

You can specify knob radius value either in logical pixel or radius factor using the sizeUnit property. if sizeUnit is GaugeSizeUnit.factor, value will be given from 0 to 1. Here knob radius size is calculated by knobRadius * axis radius value.

Example: knobRadius value is 0.2 and axis radius is 100, knob radius is 20(0.2 * 100) logical pixels. if sizeUnit is GaugeSizeUnit.logicalPixel, defined value is set to the knob radius.

Defaults to 0.08 and sizeUnit is GaugeSizeUnit.factor.

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
         axes:<RadialAxis>[RadialAxis
         ( pointers: <GaugePointer>[
            NeedlePointer(knobStyle: KnobStyle(knobRadius: 0.2),
          )])]
       ));
}

Implementation

final double knobRadius;