dataLabelTextStyle property

TextStyle? dataLabelTextStyle
final

Specifies the data label text style for spark chart label text.

Widget build(BuildContext context) {
 return Scaffold(
   appBar: AppBar(),
     body: Center(
       child: SfTheme(
         data: SfThemeData(
           SparkChartThemeData: SfSparkChartThemeData(
             dataLabelTextStyle: TextStyle(color: Colors.blue)
             ),
           ),
         child: SfSparkLineChart(),
       ),
     )
  );
}

Implementation

final TextStyle? dataLabelTextStyle;