ChartThemeData constructor
const
ChartThemeData({
- Color backgroundColor = Colors.white,
- TextStyle labelStyle = const TextStyle(fontWeight: FontWeight.bold, fontSize: 14),
- TextStyle valueStyle = const TextStyle(fontSize: 36, fontWeight: FontWeight.bold),
- TextStyle secondaryValueStyle = const TextStyle(fontSize: 28, fontWeight: FontWeight.bold),
- TextStyle unitStyle = const TextStyle(fontSize: 14),
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(8)),
- 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),
),
});