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
-
- @immutable
- @chartSurface
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 tonull. -
clearShadow(
) → CartesianValueSummaryTheme -
Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension
Clears CartesianValueSummaryTheme.shadow tonull. -
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 withvalue. -
withBackground(
Color value) → CartesianValueSummaryTheme -
Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension
Replaces CartesianValueSummaryTheme.background withvalue. -
withBackgroundOpacity(
double value) → CartesianValueSummaryTheme -
Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension
Replaces CartesianValueSummaryTheme.backgroundOpacity withvalue. -
withBorder(
Color value) → CartesianValueSummaryTheme -
Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension
Replaces CartesianValueSummaryTheme.border withvalue. -
withBorderRadius(
BorderRadius value) → CartesianValueSummaryTheme -
Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension
Replaces CartesianValueSummaryTheme.borderRadius withvalue. -
withBorderWidth(
double value) → CartesianValueSummaryTheme -
Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension
Replaces CartesianValueSummaryTheme.borderWidth withvalue. -
withLabelStyle(
TextStyle value) → CartesianValueSummaryTheme -
Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension
Replaces CartesianValueSummaryTheme.labelStyle withvalue. -
withLabelValueGap(
double value) → CartesianValueSummaryTheme -
Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension
Replaces CartesianValueSummaryTheme.labelValueGap withvalue. -
withMaxWidth(
double value) → CartesianValueSummaryTheme -
Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension
Replaces CartesianValueSummaryTheme.maxWidth withvalue. -
withMinWidth(
double value) → CartesianValueSummaryTheme -
Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension
Replaces CartesianValueSummaryTheme.minWidth withvalue. -
withPadding(
EdgeInsets value) → CartesianValueSummaryTheme -
Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension
Replaces CartesianValueSummaryTheme.padding withvalue. -
withRowGap(
double value) → CartesianValueSummaryTheme -
Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension
Replaces CartesianValueSummaryTheme.rowGap withvalue. -
withShadow(
BoxShadow value) → CartesianValueSummaryTheme -
Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension
Replaces CartesianValueSummaryTheme.shadow withvalue. -
withTitleStyle(
TextStyle value) → CartesianValueSummaryTheme -
Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension
Replaces CartesianValueSummaryTheme.titleStyle withvalue. -
withValueStyle(
TextStyle value) → CartesianValueSummaryTheme -
Available on CartesianValueSummaryTheme, provided by the CartesianValueSummaryThemeFluent extension
Replaces CartesianValueSummaryTheme.valueStyle withvalue.
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