offsetUnit property
Calculates the pointer position either in logical pixel or radius factor.
Using GaugeSizeUnit, widget pointer position is calculated.
Defaults to GaugeSizeUnit.logicalPixel
.
Also refer GaugeSizeUnit.
Widget build(BuildContext context) {
return Container(
child: SfRadialGauge(
axes:<RadialAxis>[RadialAxis(
pointers: <GaugePointer>[WidgetPointer(pointerOffset: 0.3,
value: 20,
offsetUnit: GaugeSizeUnit.factor, width: 0.5
widget: Container( height: 30, width: 30,
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(color: Colors.red)),
child: Icon( Icons.check, color: Colors.black ))
)],
)]
));
}
Implementation
final GaugeSizeUnit offsetUnit;