ChartThemeData constructor

const ChartThemeData({
  1. Color backgroundColor = Colors.white,
  2. TextStyle labelStyle = const TextStyle(fontWeight: FontWeight.bold, fontSize: 14),
  3. TextStyle valueStyle = const TextStyle(fontSize: 36, fontWeight: FontWeight.bold),
  4. TextStyle secondaryValueStyle = const TextStyle(fontSize: 28, fontWeight: FontWeight.bold),
  5. TextStyle unitStyle = const TextStyle(fontSize: 14),
  6. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(8)),
  7. BoxShadow boxShadow = const BoxShadow(color: Colors.grey, blurRadius: 4, offset: Offset(0, 2)),
})

Implementation

const ChartThemeData({
  this.backgroundColor = Colors.white,
  this.labelStyle =
      const TextStyle(fontWeight: FontWeight.bold, fontSize: 14),
  this.valueStyle =
      const TextStyle(fontSize: 36, fontWeight: FontWeight.bold,),
  this.secondaryValueStyle =
      const TextStyle(fontSize: 28, fontWeight: FontWeight.bold),
  this.unitStyle = const TextStyle(fontSize: 14),
  this.borderRadius = const BorderRadius.all(Radius.circular(8)),
  this.boxShadow = const BoxShadow(
    color: Colors.grey,
    blurRadius: 4,
    offset: Offset(0, 2),
  ),
});