ChartTheme.light constructor
ChartTheme.light()
Clean modern light theme.
Implementation
factory ChartTheme.light() {
const bull = Color(0xFF089981);
const bear = Color(0xFFF23645);
const axisText = Color(0xFF787B86);
return ChartTheme(
backgroundColor: Colors.white,
bullishColor: bull,
bearishColor: bear,
bullishTransparent: bull.withValues(alpha: 0.35),
bearishTransparent: bear.withValues(alpha: 0.35),
gridColor: const Color(0xFFF0F3FA),
axisTextColor: axisText,
axisLineColor: const Color(0xFFE0E3EB),
crosshairColor: const Color(0xFF9598A1),
crosshairBadgeBackground: const Color(0xFF131722),
crosshairBadgeTextColor: Colors.white,
currentPriceLineColor: const Color(0xFF2962FF),
currentPriceBadgeBackground: const Color(0xFF2962FF),
currentPriceBadgeTextColor: Colors.white,
axisTextStyle: const TextStyle(
color: axisText,
fontSize: 10,
fontFamily: 'monospace',
fontWeight: FontWeight.w400,
),
tooltipTextStyle: const TextStyle(
color: Color(0xFF131722),
fontSize: 11,
fontFamily: 'monospace',
fontWeight: FontWeight.w500,
),
);
}