ChartTheme.dark constructor

ChartTheme.dark()

Premium dark trading terminal theme (TradingView / Bloomberg dark aesthetic).

Implementation

factory ChartTheme.dark() {
  const bull = Color(0xFF089981);
  const bear = Color(0xFFF23645);
  const axisText = Color(0xFF868993);

  return ChartTheme(
    backgroundColor: const Color(0xFF131722),
    bullishColor: bull,
    bearishColor: bear,
    bullishTransparent: bull.withValues(alpha: 0.35),
    bearishTransparent: bear.withValues(alpha: 0.35),
    gridColor: const Color(0xFF1E222D),
    axisTextColor: axisText,
    axisLineColor: const Color(0xFF2A2E39),
    crosshairColor: const Color(0xFF787B86),
    crosshairBadgeBackground: const Color(0xFF2A2E39),
    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: Colors.white,
      fontSize: 11,
      fontFamily: 'monospace',
      fontWeight: FontWeight.w500,
    ),
  );
}