color property
Specifies the color of the spark chart.
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SfTheme(
data: SfThemeData(
sparkChartThemeData: SfSparkChartThemeData(
color: Colors.blue
)
),
child: SfSparkLineChart(),
),
)
);
}
Implementation
final Color? color;