ChartTheme class
Styling and color tokens for the charting engine.
Constructors
- ChartTheme({required Color backgroundColor, required Color bullishColor, required Color bearishColor, required Color bullishTransparent, required Color bearishTransparent, required Color gridColor, required Color axisTextColor, required Color axisLineColor, required Color crosshairColor, required Color crosshairBadgeBackground, required Color crosshairBadgeTextColor, required Color currentPriceLineColor, required Color currentPriceBadgeBackground, required Color currentPriceBadgeTextColor, required TextStyle axisTextStyle, required TextStyle tooltipTextStyle})
-
const
- ChartTheme.dark()
-
Premium dark trading terminal theme (TradingView / Bloomberg dark aesthetic).
factory
- ChartTheme.light()
-
Clean modern light theme.
factory
Properties
- axisLineColor → Color
-
final
- axisTextColor → Color
-
final
- axisTextStyle → TextStyle
-
final
- backgroundColor → Color
-
final
- bearishColor → Color
-
final
- bearishTransparent → Color
-
final
- bullishColor → Color
-
final
- bullishTransparent → Color
-
final
- crosshairBadgeBackground → Color
-
final
- crosshairBadgeTextColor → Color
-
final
- crosshairColor → Color
-
final
- currentPriceBadgeBackground → Color
-
final
- currentPriceBadgeTextColor → Color
-
final
- currentPriceLineColor → Color
-
final
- gridColor → Color
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDark → bool
-
Returns whether this theme is considered a dark theme based on background luminance.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tooltipTextStyle → TextStyle
-
final
Methods
-
copyWith(
{Color? backgroundColor, Color? bullishColor, Color? bearishColor, Color? bullishTransparent, Color? bearishTransparent, Color? gridColor, Color? axisTextColor, Color? axisLineColor, Color? crosshairColor, Color? crosshairBadgeBackground, Color? crosshairBadgeTextColor, Color? currentPriceLineColor, Color? currentPriceBadgeBackground, Color? currentPriceBadgeTextColor, TextStyle? axisTextStyle, TextStyle? tooltipTextStyle}) → ChartTheme - Creates a copy of this theme with the given fields replaced with 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