textStyle property
Customizes the text in the interactive tooltip.
Used to change the text color, size, font family, fontStyle, and font weight.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
trackballBehavior: TrackballBehavior(enable: true,
tooltipSettings: InteractiveTooltip(
textStyle: TextStyle(color:Colors.red))),
));
}
Implementation
final TextStyle textStyle;