SpiderChartThemeData constructor

const SpiderChartThemeData({
  1. Color gridLineColor = const Color(0x4D9E9E9E),
  2. Color gridDashedLineColor = const Color(0x337B4DFF),
  3. Color spokeLineColor = const Color(0x1A9E9E9E),
  4. Color dataLineColor = const Color(0xFF7B4DFF),
  5. Color dataFillColor = const Color(0x267B4DFF),
  6. bool useGradient = false,
  7. List<Color>? gradientColors,
  8. List<Color>? dataLineGradientColors,
  9. List<Color>? gridLineGradientColors,
  10. List<Color>? centerCircleGradientColors,
  11. Color? centerCircleColor,
  12. TextStyle labelStyle = const TextStyle(color: Colors.black87, fontSize: 10, fontWeight: FontWeight.w500),
  13. TextStyle selectedLabelStyle = const TextStyle(color: Color(0xFF7B4DFF), fontSize: 12, fontWeight: FontWeight.bold),
  14. bool showSelectedLabel = true,
  15. bool? showTitleSelectedLabel,
  16. TitleLabelMode titleLabelMode = TitleLabelMode.hidden,
  17. TitleLabelBehavior titleLabelBehavior = TitleLabelBehavior.always,
  18. double titleSlideSpace = 40.0,
  19. bool enableTitleSlide = true,
  20. Duration titleSlideDuration = const Duration(milliseconds: 450),
  21. Curve titleSlideCurve = Curves.easeInOutCubic,
  22. bool useSpline = false,
  23. TextStyle titleSelectedLabelStyle = const TextStyle(color: Colors.black87, fontSize: 16, fontWeight: FontWeight.bold),
  24. double titleSelectedLabelTopOffset = 0.0,
  25. double chartTopOffset = 0.0,
  26. double labelOffsetFromChart = 10.0,
  27. double labelRadiusFactor = 1.0,
  28. double bubbleOffset = 10.0,
  29. double strokeWidth = 3.0,
  30. double pointSize = 4.0,
  31. Color pointColor = const Color(0xFF7B4DFF),
  32. bool rotateToTop = true,
  33. Duration rotationDuration = const Duration(milliseconds: 500),
  34. TriangleDirection triangleDirection = TriangleDirection.down,
  35. bool autoTriangleDirection = true,
  36. BubbleAnchor bubbleAnchor = BubbleAnchor.label,
  37. double bottomPadding = 0.0,
  38. bool autoHeightAdjustment = true,
})

Implementation

const SpiderChartThemeData({
  this.gridLineColor = const Color(
    0x4D9E9E9E,
  ), // Colors.grey.withOpacity(0.3)
  this.gridDashedLineColor = const Color(
    0x337B4DFF,
  ), // Colors.deepPurple.withOpacity(0.2)
  this.spokeLineColor = const Color(
    0x1A9E9E9E,
  ), // Colors.grey.withOpacity(0.1)
  this.dataLineColor = const Color(0xFF7B4DFF), // Colors.deepPurple
  this.dataFillColor = const Color(
    0x267B4DFF,
  ), // Colors.deepPurple.withOpacity(0.15)
  this.useGradient = false,
  this.gradientColors,
  this.dataLineGradientColors,
  this.gridLineGradientColors,
  this.centerCircleGradientColors,
  this.centerCircleColor,
  this.labelStyle = const TextStyle(
    color: Colors.black87,
    fontSize: 10,
    fontWeight: FontWeight.w500,
  ),
  this.selectedLabelStyle = const TextStyle(
    color: Color(0xFF7B4DFF),
    fontSize: 12,
    fontWeight: FontWeight.bold,
  ),
  this.showSelectedLabel = true,
  bool? showTitleSelectedLabel,
  TitleLabelMode titleLabelMode = TitleLabelMode.hidden,
  this.titleLabelBehavior = TitleLabelBehavior.always,
  this.titleSlideSpace = 40.0,
  this.enableTitleSlide = true,
  this.titleSlideDuration = const Duration(milliseconds: 450),
  this.titleSlideCurve = Curves.easeInOutCubic,
  this.useSpline = false,
  this.titleSelectedLabelStyle = const TextStyle(
    color: Colors.black87,
    fontSize: 16,
    fontWeight: FontWeight.bold,
  ),
  this.titleSelectedLabelTopOffset = 0.0,
  this.chartTopOffset = 0.0,
  this.labelOffsetFromChart = 10.0,
  this.labelRadiusFactor = 1.0,
  this.bubbleOffset = 10.0,
  this.strokeWidth = 3.0,
  this.pointSize = 4.0,
  this.pointColor = const Color(0xFF7B4DFF),
  this.rotateToTop = true,
  this.rotationDuration = const Duration(milliseconds: 500),
  this.triangleDirection = TriangleDirection.down,
  this.autoTriangleDirection = true,
  this.bubbleAnchor = BubbleAnchor.label,
  this.bottomPadding = 0.0,
  this.autoHeightAdjustment = true,
})  : titleLabelMode = showTitleSelectedLabel != null
          ? (showTitleSelectedLabel
              ? TitleLabelMode.shown
              : TitleLabelMode.hidden)
          : titleLabelMode,
      // ignore: deprecated_member_use_from_same_package
      showTitleSelectedLabel =
          showTitleSelectedLabel ?? (titleLabelMode == TitleLabelMode.shown);