FluentCartesianChartStyle class
The visual configuration of a Fluent cartesian chart.
Shaped exactly like FluentBadgeStyle: every visual property is a
WidgetStateProperty, every field is nullable and means "inherit", and
resolution runs derived defaults, then the nearest cartesian chart theme,
then the widget's own style.
Only ten properties, because upstream only wires four of its nine style
slots: root, chartWrapper, svgTooltip and chart. The rest are
commented out at useCartesianChartStyles.styles.ts:132-162, so a bag
mirroring them would resolve into nothing.
- Annotations
Constructors
-
FluentCartesianChartStyle({WidgetStateProperty<
TextStyle?> ? axisTextStyle, WidgetStateProperty<Color?> ? axisLineColor, WidgetStateProperty<Color?> ? gridLineColor, WidgetStateProperty<double?> ? gridLineOpacity, WidgetStateProperty<TextStyle?> ? axisTitleStyle, WidgetStateProperty<EdgeInsetsGeometry?> ? legendRowPadding, WidgetStateProperty<EdgeInsetsGeometry?> ? plotPadding, WidgetStateProperty<double?> ? dimmedOpacity, WidgetStateProperty<Color?> ? tooltipBackgroundColor, WidgetStateProperty<BorderRadius?> ? tooltipBorderRadius}) -
Creates a style. Omitted properties inherit.
const
Properties
-
axisLineColor
→ WidgetStateProperty<
Color?> ? -
The tick line colour (
useCartesianChartStyles.styles.ts:69).final -
axisTextStyle
→ WidgetStateProperty<
TextStyle?> ? -
Tick label text.
caption2Strongupstream (useCartesianChartStyles.styles.ts:63-66).final -
axisTitleStyle
→ WidgetStateProperty<
TextStyle?> ? -
Axis title and axis annotation text (
Common.styles.ts:51-62).final -
dimmedOpacity
→ WidgetStateProperty<
double?> ? -
Opacity applied to a mark the legend has dimmed
(
useCartesianChartStyles.styles.ts:98-101).final -
gridLineColor
→ WidgetStateProperty<
Color?> ? -
The gridline colour. Same token as axisLineColor — gridlines are just
tick lines with a negative inner size (
utilities.ts:851).final -
gridLineOpacity
→ WidgetStateProperty<
double?> ? -
Gridline and tick-line opacity
(
useCartesianChartStyles.styles.ts:68,:84).final - hashCode → int
-
The hash code for this object.
no setteroverride
-
legendRowPadding
→ WidgetStateProperty<
EdgeInsetsGeometry?> ? -
Inset of the legend row beneath the plot
(
useCartesianChartStyles.styles.ts:102-105).final -
plotPadding
→ WidgetStateProperty<
EdgeInsetsGeometry?> ? -
Extra inset applied inside the plot box. Zero upstream; exposed so a chart
embedded in a dense surface can breathe without restyling its margins.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tooltipBackgroundColor
→ WidgetStateProperty<
Color?> ? -
Fill behind an axis-label tooltip (
Common.styles.ts:44).final -
tooltipBorderRadius
→ WidgetStateProperty<
BorderRadius?> ? -
Corner radius of that tooltip (
Common.styles.ts:45).final
Methods
-
copyWith(
{WidgetStateProperty< TextStyle?> ? axisTextStyle, WidgetStateProperty<Color?> ? axisLineColor, WidgetStateProperty<Color?> ? gridLineColor, WidgetStateProperty<double?> ? gridLineOpacity, WidgetStateProperty<TextStyle?> ? axisTitleStyle, WidgetStateProperty<EdgeInsetsGeometry?> ? legendRowPadding, WidgetStateProperty<EdgeInsetsGeometry?> ? plotPadding, WidgetStateProperty<double?> ? dimmedOpacity, WidgetStateProperty<Color?> ? tooltipBackgroundColor, WidgetStateProperty<BorderRadius?> ? tooltipBorderRadius}) → FluentCartesianChartStyle - This style with the given properties replaced.
-
merge(
FluentCartesianChartStyle? other) → FluentCartesianChartStyle -
This style with the non-null properties of
otherlayered on top. -
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.
override
Static Methods
-
from(
{TextStyle? axisTextStyle, Color? axisLineColor, Color? gridLineColor, double? gridLineOpacity, TextStyle? axisTitleStyle, EdgeInsetsGeometry? legendRowPadding, EdgeInsetsGeometry? plotPadding, double? dimmedOpacity, Color? tooltipBackgroundColor, BorderRadius? tooltipBorderRadius}) → FluentCartesianChartStyle - Convenience for the common case of one value across every state.