ChartTheme constructor

const ChartTheme({
  1. required Color backgroundColor,
  2. required Color textColor,
  3. required Color gridColor,
  4. required Color axisColor,
  5. required List<Color> gradientColors,
  6. double shadowElevation = 4.0,
  7. double borderRadius = 16.0,
  8. bool showGrid = true,
  9. bool showAxis = true,
  10. bool showLegend = true,
  11. bool showTooltip = true,
  12. int xAxisLabelRotation = 0,
  13. int yAxisLabelRotation = 0,
  14. TextStyle? axisLabelStyle,
  15. TextStyle? tooltipStyle,
  16. EdgeInsets padding = const EdgeInsets.fromLTRB(40, 20, 20, 40),
})

Implementation

const ChartTheme({
  required this.backgroundColor,
  required this.textColor,
  required this.gridColor,
  required this.axisColor,
  required this.gradientColors,
  this.shadowElevation = 4.0,
  this.borderRadius = 16.0,
  this.showGrid = true,
  this.showAxis = true,
  this.showLegend = true,
  this.showTooltip = true,
  this.xAxisLabelRotation = 0,
  this.yAxisLabelRotation = 0,
  this.axisLabelStyle,
  this.tooltipStyle,
  this.padding = const EdgeInsets.fromLTRB(40, 20, 20, 40),
});