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