crosshairTextStyle property
Specifies the text style for crosshair label.
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SfTheme(
data: SfThemeData(
chartThemeData: SfChartThemeData(
crosshairTextStyle: TextStyle(color: Colors.red)
)
),
child: SfCartesianChart(),
),
)
);
}
Implementation
final TextStyle? crosshairTextStyle;