CartesianValueSummaryTheme class

Theme defaults for the Cartesian value summary panel.

CartesianValueSummaryStyle overrides resolve against these defaults: an inherited field takes the value defined here, while an explicitly cleared field stays cleared with no fallback to this theme. The fixed overlay and the draggable annotation presentation resolve against the same component, so both stay visually consistent.

The presets keep the panel legible in high contrast, at 200% text scaling, and on dark plot backgrounds; text colors never rely on the panel surface remaining opaque.

Available extensions
Annotations

Constructors

CartesianValueSummaryTheme({required Color background, required double backgroundOpacity, required Color border, required double borderWidth, required BorderRadius borderRadius, required EdgeInsets padding, required TextStyle titleStyle, required TextStyle labelStyle, required TextStyle valueStyle, required double accentSize, BoxShadow? shadow, required double minWidth, required double maxWidth, required double rowGap, double? labelValueGap})
const

Properties

accentSize double
Diameter of the series accent mark in logical pixels.
final
background Color
Panel surface color before backgroundOpacity is applied.
final
backgroundOpacity double
Opacity applied to background, from 0 to 1.
final
border Color
Panel outline color.
final
borderRadius BorderRadius
Corner radius of the panel surface and outline.
final
borderWidth double
Panel outline width in logical pixels.
final
hashCode int
The hash code for this object.
no setteroverride
labelStyle TextStyle
Text style for row labels and secondary content.
final
labelValueGap double?
Horizontal gap between the row-label column and a packed value column, or null (the default in every preset) for the spread layout where values right-align to the panel's content edge.
final
maxWidth double
Maximum panel width in logical pixels.
final
minWidth double
Minimum panel width in logical pixels.
final
padding EdgeInsets
Inner padding between the panel edge and its content.
final
rowGap double
Vertical gap between rows in logical pixels.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadow BoxShadow?
Drop shadow behind the panel, or null for no shadow.
final
titleStyle TextStyle
Text style for the panel title (series or section heading).
final
valueStyle TextStyle
Text style for row values and primary content.
final

Methods

clearLabelValueGap() CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Clears CartesianValueSummaryTheme.labelValueGap to null.
clearShadow() CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Clears CartesianValueSummaryTheme.shadow to null.
copyWith({Color? background, double? backgroundOpacity, Color? border, double? borderWidth, BorderRadius? borderRadius, EdgeInsets? padding, TextStyle? titleStyle, TextStyle? labelStyle, TextStyle? valueStyle, double? accentSize, BoxShadow? shadow, double? minWidth, double? maxWidth, double? rowGap, double? labelValueGap, bool clearShadow = false, bool clearLabelValueGap = false}) CartesianValueSummaryTheme
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withAccentSize(double value) CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Replaces CartesianValueSummaryTheme.accentSize with value.
withBackground(Color value) CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Replaces CartesianValueSummaryTheme.background with value.
withBackgroundOpacity(double value) CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Replaces CartesianValueSummaryTheme.backgroundOpacity with value.
withBorder(Color value) CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Replaces CartesianValueSummaryTheme.border with value.
withBorderRadius(BorderRadius value) CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Replaces CartesianValueSummaryTheme.borderRadius with value.
withBorderWidth(double value) CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Replaces CartesianValueSummaryTheme.borderWidth with value.
withLabelStyle(TextStyle value) CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Replaces CartesianValueSummaryTheme.labelStyle with value.
withLabelValueGap(double value) CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Replaces CartesianValueSummaryTheme.labelValueGap with value.
withMaxWidth(double value) CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Replaces CartesianValueSummaryTheme.maxWidth with value.
withMinWidth(double value) CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Replaces CartesianValueSummaryTheme.minWidth with value.
withPadding(EdgeInsets value) CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Replaces CartesianValueSummaryTheme.padding with value.
withRowGap(double value) CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Replaces CartesianValueSummaryTheme.rowGap with value.
withShadow(BoxShadow value) CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Replaces CartesianValueSummaryTheme.shadow with value.
withTitleStyle(TextStyle value) CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Replaces CartesianValueSummaryTheme.titleStyle with value.
withValueStyle(TextStyle value) CartesianValueSummaryTheme

Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension

Replaces CartesianValueSummaryTheme.valueStyle with value.

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

lerp(CartesianValueSummaryTheme a, CartesianValueSummaryTheme b, double t) CartesianValueSummaryTheme
Linearly interpolates between two summary themes.

Constants

colorblindFriendly → const CartesianValueSummaryTheme
Neutral surface with an Okabe-Ito blue border so the panel never relies on red/green discrimination.
dark → const CartesianValueSummaryTheme
highContrast → const CartesianValueSummaryTheme
Opaque black-on-white treatment with a heavy crisp outline and no soft shadow, sized up for legibility under text scaling.
light → const CartesianValueSummaryTheme