labelOffset property

double labelOffset
final

Adjusts the axis label distance from tick end.

You can specify value either in logical pixel or radius factor using the offsetUnit property. if offsetUnit is GaugeSizeUnit.factor, value will be given from 0 to 1. Here labels placing position is calculated by labelOffset * axis radius value.

Example: labelOffset value is 0.2 and axis radius is 100, labels moving 20(0.2 * 100) logical pixels from ticks end. If offsetUnit is GaugeSizeUnit.logicalPixel, the defined value distance labels will move from the end of the tick.

Defaults to 15 and offsetUnit is GaugeSizeUnit.logicalPixel.

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
         axes:<RadialAxis>[RadialAxis(
          labelOffset: 30
           )]
       ));
}

Implementation

final double labelOffset;