rangeColor property
Specifies the range color
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
body: Center(
child: SfTheme(
data: SfThemeData(
gaugeThemeData: SfGaugeThemeData(
rangeColor: Colors.cyan
)
),
child: SfRadialGauge(
axes: <RadialAxis>[
RadialAxis(
radiusFactor: 0.8,
ranges: <GaugeRange>[
GaugeRange(
startValue: 0,
endValue: 35,
sizeUnit: GaugeSizeUnit.factor,
rangeOffset: 0.06,
startWidth: 0.05,
endWidth: 0.25),
],
),
],
)
),
)
);
}
Implementation
final Color? rangeColor;