SpiderChartThemeData class
Constructors
-
SpiderChartThemeData({Color gridLineColor = const Color(0x4D9E9E9E), Color gridDashedLineColor = const Color(0x337B4DFF), Color spokeLineColor = const Color(0x1A9E9E9E), Color dataLineColor = const Color(0xFF7B4DFF), Color dataFillColor = const Color(0x267B4DFF), bool useGradient = false, List<
Color> ? gradientColors, List<Color> ? dataLineGradientColors, List<Color> ? gridLineGradientColors, List<Color> ? centerCircleGradientColors, Color? centerCircleColor, TextStyle labelStyle = const TextStyle(color: Colors.black87, fontSize: 10, fontWeight: FontWeight.w500), TextStyle selectedLabelStyle = const TextStyle(color: Color(0xFF7B4DFF), fontSize: 12, fontWeight: FontWeight.bold), bool showSelectedLabel = true, bool? showTitleSelectedLabel, TitleLabelMode titleLabelMode = TitleLabelMode.hidden, TitleLabelBehavior titleLabelBehavior = TitleLabelBehavior.always, double titleSlideSpace = 40.0, bool enableTitleSlide = true, Duration titleSlideDuration = const Duration(milliseconds: 450), Curve titleSlideCurve = Curves.easeInOutCubic, bool useSpline = false, TextStyle titleSelectedLabelStyle = const TextStyle(color: Colors.black87, fontSize: 16, fontWeight: FontWeight.bold), double titleSelectedLabelTopOffset = 0.0, double chartTopOffset = 0.0, double labelOffsetFromChart = 10.0, double labelRadiusFactor = 1.0, double bubbleOffset = 10.0, double strokeWidth = 3.0, double pointSize = 4.0, Color pointColor = const Color(0xFF7B4DFF), bool rotateToTop = true, Duration rotationDuration = const Duration(milliseconds: 500), TriangleDirection triangleDirection = TriangleDirection.down, bool autoTriangleDirection = true, BubbleAnchor bubbleAnchor = BubbleAnchor.label, double bottomPadding = 0.0, bool autoHeightAdjustment = true}) -
const
Properties
- autoHeightAdjustment → bool
-
Whether to automatically adjust the chart's height to accommodate the score bubble when it appears
at the bottom.
final
- autoTriangleDirection → bool
-
Whether to automatically adjust the triangle direction based on position
final
- bottomPadding → double
-
The padding (in logical pixels) to add to the bottom of the chart when calculating content overflow.
This allows pushing down subsequent widgets (like those in a Column) when a bottom-aligned score bubble appears,
preventing overlap.
final
- bubbleAnchor → BubbleAnchor
-
Where to anchor the score bubble (label or data point)
final
- bubbleOffset → double
-
Vertical offset for the score bubble
final
- centerCircleColor → Color?
-
Color for the center circle (overrides gradient if provided)
final
-
centerCircleGradientColors
→ List<
Color> ? -
Colors for the center circle gradient
final
- chartTopOffset → double
-
Top offset for the chart itself
final
- dataFillColor → Color
-
Color of the data polygon fill (if gradient is disabled)
final
- dataLineColor → Color
-
Color of the data polygon outline
final
-
dataLineGradientColors
→ List<
Color> ? -
Gradient colors for the data line (optional)
final
- enableTitleSlide → bool
-
Whether to animate the chart/title sliding when toggling visibility.
final
-
gradientColors
→ List<
Color> ? -
Gradient colors for the data polygon (if useGradient is true)
final
- gridDashedLineColor → Color
-
Color of the dashed inner circles
final
- gridLineColor → Color
-
Color of the spider web grid lines
final
-
gridLineGradientColors
→ List<
Color> ? -
Gradient colors for the grid lines (optional)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- labelOffsetFromChart → double
-
Distance from the chart outer ring to the labels
final
- labelRadiusFactor → double
-
Multiplier for label radius (use >1 to push labels outward, <1 to pull inward)
final
- labelStyle → TextStyle
-
Style for the labels around the chart
final
- pointColor → Color
-
Color of the dots at data points
final
- pointSize → double
-
Size of the dots at data points
final
- rotateToTop → bool
-
Whether to rotate the chart so the selected label is at the top
final
- rotationDuration → Duration
-
Duration of the rotation animation
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedLabelStyle → TextStyle
-
Style for the selected label (when highlighted)
final
- showSelectedLabel → bool
-
Whether to show/highlight the selected label
final
- showTitleSelectedLabel → bool
-
Whether to show the selected label as a title above the chart
Use titleLabelMode to control visibility.
final
- spokeLineColor → Color
-
Color of the axis lines radiating from center
final
- strokeWidth → double
-
Width of the data line
final
- titleLabelBehavior → TitleLabelBehavior
-
Controls how the title behaves when tapping labels/data.
final
- titleLabelMode → TitleLabelMode
-
Controls visibility of the selected label title.
final
- titleSelectedLabelStyle → TextStyle
-
Style for the title selected label
final
- titleSelectedLabelTopOffset → double
-
Top offset for the selected label title
final
- titleSlideCurve → Curve
-
Curve for the slide/fade animations related to the title visibility.
final
- titleSlideDuration → Duration
-
Duration for the slide/fade animations related to the title visibility.
final
- titleSlideSpace → double
-
Vertical space reserved when the title is visible (used to slide chart down).
final
- triangleDirection → TriangleDirection
-
Direction of the triangle on the score bubble
final
- useGradient → bool
-
Whether to use a gradient fill for the data polygon
final
- useSpline → bool
-
Whether to use spline (curved) lines for the data polygon
final
Methods
-
copyWith(
{Color? gridLineColor, Color? gridDashedLineColor, Color? spokeLineColor, Color? dataLineColor, Color? dataFillColor, bool? useGradient, List< Color> ? gradientColors, List<Color> ? dataLineGradientColors, List<Color> ? gridLineGradientColors, List<Color> ? centerCircleGradientColors, Color? centerCircleColor, TextStyle? labelStyle, TextStyle? selectedLabelStyle, bool? showSelectedLabel, bool? showTitleSelectedLabel, TitleLabelMode? titleLabelMode, TitleLabelBehavior? titleLabelBehavior, double? titleSlideSpace, bool? enableTitleSlide, Duration? titleSlideDuration, Curve? titleSlideCurve, TextStyle? titleSelectedLabelStyle, double? titleSelectedLabelTopOffset, double? chartTopOffset, double? labelOffsetFromChart, double? labelRadiusFactor, double? bubbleOffset, double? strokeWidth, double? pointSize, Color? pointColor, bool? rotateToTop, Duration? rotationDuration, TriangleDirection? triangleDirection, bool? autoTriangleDirection, BubbleAnchor? bubbleAnchor, bool? useSpline, double? splineTension, double? bottomPadding, bool? autoHeightAdjustment}) → SpiderChartThemeData - Creates a copy of this theme but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited