textStyle property

TextStyle textStyle
final

Customizes the text in the interactive tooltip.

Used to change the text color, size, font family, font style, etc.

late TrackballBehavior trackballBehavior;

void initState() {
  trackballBehavior: TrackballBehavior(
    enable: true,
    tooltipSettings: InteractiveTooltip(
      textStyle: TextStyle(
        fontSize: 14
      )
    )
  );
  super.initState();
}

Widget build(BuildContext context) {
  return SfCartesianChart(
    trackballBehavior: trackballBehavior
  );
}

Implementation

final TextStyle textStyle;