child property
A widget, which is to be used as the pointer.
You can set any custom widget as pointer to point a value in the gauge scale.
Defaults to null
.
Widget build(BuildContext context) {
return Container(
child: SfRadialGauge(
axes:<RadialAxis>[RadialAxis(
pointers: <GaugePointer>[WidgetPointer(value: 50,
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
@override
final Widget child;