ChartTheme class

Theme-aware chart styling configuration

Constructors

ChartTheme({required Color backgroundColor, required Color textColor, required Color gridColor, required Color axisColor, required List<Color> gradientColors, double shadowElevation = 4.0, double borderRadius = 16.0, bool showGrid = true, bool showAxis = true, bool showLegend = true, bool showTooltip = true})
const
ChartTheme.dark()
Create dark theme with enhanced colors
factory
ChartTheme.fromMaterialTheme(ThemeData theme)
Create from Material Theme
factory
ChartTheme.light()
Create light theme with enhanced colors
factory

Properties

axisColor Color
final
backgroundColor Color
final
borderRadius double
final
gradientColors List<Color>
final
gridColor Color
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowElevation double
final
showAxis bool
final
showGrid bool
final
showLegend bool
final
showTooltip bool
final
textColor Color
final

Methods

copyWith({Color? backgroundColor, Color? textColor, Color? gridColor, Color? axisColor, List<Color>? gradientColors, double? shadowElevation, double? borderRadius, bool? showGrid, bool? showAxis, bool? showLegend, bool? showTooltip}) ChartTheme
Copy with method for customization
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