textStyle property
Customizes the text style of plot band.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
primaryXAxis: NumericAxis(
plotBands: <PlotBand>[
PlotBand(
isVisible:true,
textStyle: const TextStyle(color:Colors.red)
)
]
)
));
}
Implementation
final TextStyle textStyle;