ChartTheme constructor

const ChartTheme({
  1. required Color backgroundColor,
  2. required Color gridColor,
  3. required Color axisColor,
  4. required TextStyle axisTextStyle,
  5. required Color tooltipBackground,
  6. required TextStyle tooltipTextStyle,
  7. required Color crosshairColor,
  8. required Color selectionColor,
  9. required List<Color> seriesColors,
  10. required List<BoxShadow> shadow,
  11. TextStyle? titleTextStyle,
  12. TextStyle? subtitleTextStyle,
  13. TextStyle? legendTextStyle,
  14. Color borderColor = const Color(0x33FFFFFF),
  15. double cardBorderRadius = 12,
  16. Color sliceBorderColor = const Color(0xFFFFFFFF),
  17. double sliceBorderWidth = 2,
  18. bool ringMarkers = false,
  19. Color markerCenterColor = Colors.white,
  20. double gridStrokeWidth = 1.0,
  21. double axisStrokeWidth = 1.0,
  22. EdgeInsets padding = const EdgeInsets.all(16),
  23. Gradient? backgroundGradient,
})

Implementation

const ChartTheme({
  required this.backgroundColor,
  required this.gridColor,
  required this.axisColor,
  required this.axisTextStyle,
  required this.tooltipBackground,
  required this.tooltipTextStyle,
  required this.crosshairColor,
  required this.selectionColor,
  required this.seriesColors,
  required this.shadow,
  this.titleTextStyle,
  this.subtitleTextStyle,
  this.legendTextStyle,
  this.borderColor = const Color(0x33FFFFFF),
  this.cardBorderRadius = 12,
  this.sliceBorderColor = const Color(0xFFFFFFFF),
  this.sliceBorderWidth = 2,
  this.ringMarkers = false,
  this.markerCenterColor = Colors.white,
  this.gridStrokeWidth = 1.0,
  this.axisStrokeWidth = 1.0,
  this.padding = const EdgeInsets.all(16),
  this.backgroundGradient,
});