ChartTheme class
Visual theme for charts including light, dark, and dashboard presets.
- Annotations
Constructors
-
ChartTheme({required Color backgroundColor, required Color gridColor, required Color axisColor, required TextStyle axisTextStyle, required Color tooltipBackground, required TextStyle tooltipTextStyle, required Color crosshairColor, required Color selectionColor, required List<
Color> seriesColors, required List<BoxShadow> shadow, TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, TextStyle? legendTextStyle, Color borderColor = const Color(0x33FFFFFF), double cardBorderRadius = 12, Color sliceBorderColor = const Color(0xFFFFFFFF), double sliceBorderWidth = 2, bool ringMarkers = false, Color markerCenterColor = Colors.white, double gridStrokeWidth = 1.0, double axisStrokeWidth = 1.0, EdgeInsets padding = const EdgeInsets.all(16), Gradient? backgroundGradient}) -
const
- ChartTheme.dark()
-
factory
- ChartTheme.dashboard()
-
Analytics dashboard preset (navy cards, blue/green/orange series).
factory
- ChartTheme.light()
-
factory
Properties
- axisColor → Color
-
final
- axisStrokeWidth → double
-
final
- axisTextStyle → TextStyle
-
final
- backgroundColor → Color
-
final
- backgroundGradient → Gradient?
-
Optional gradient painted behind the plot for depth. Falls back to the
flat backgroundColor when null.
final
- borderColor → Color
-
final
- cardBorderRadius → double
-
final
- crosshairColor → Color
-
final
- gridColor → Color
-
final
- gridStrokeWidth → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- legendTextStyle → TextStyle?
-
final
- markerCenterColor → Color
-
final
- padding → EdgeInsets
-
final
- ringMarkers → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectionColor → Color
-
final
-
seriesColors
→ List<
Color> -
final
-
shadow
→ List<
BoxShadow> -
final
- sliceBorderColor → Color
-
final
- sliceBorderWidth → double
-
final
- subtitleTextStyle → TextStyle?
-
final
- titleTextStyle → TextStyle?
-
final
- tooltipBackground → Color
-
final
- tooltipTextStyle → TextStyle
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
seriesColor(
int index) → Color -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited