backgroundColor property
Specifies the background color of spark chart widgets.
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
body: Center(
child: SfTheme(
data: SfThemeData(
SparkChartThemeData: SfSparkChartThemeData(
backgroundColor: Colors.yellow
),
),
child: SfSparkLineChart(),
),
)
);
}
Implementation
final Color? backgroundColor;