textStyle method

  1. @override
TextStyle textStyle(
  1. Color color,
  2. String? fontFamily
)

style for text label.

Warning: Override the text size can lead to layout overflow warning, you may need to update the height of bar too.

Implementation

@override
TextStyle textStyle(Color color,String? fontFamily) {
  return TextStyle(color: color);
}