ChartTheme.dark constructor

ChartTheme.dark()

Implementation

factory ChartTheme.dark() {
  return const ChartTheme(
    backgroundColor: Color(0xFF1E1E1E),
    gridColor: Color(0xFF424242),
    axisColor: Color(0xFF757575),
    axisTextStyle: TextStyle(color: Color(0xFFBDBDBD), fontSize: 11),
    titleTextStyle: TextStyle(
      color: Colors.white,
      fontSize: 14,
      fontWeight: FontWeight.w600,
    ),
    subtitleTextStyle: TextStyle(color: Color(0xFF9E9E9E), fontSize: 12),
    legendTextStyle: TextStyle(color: Color(0xFF9E9E9E), fontSize: 12),
    tooltipBackground: Color(0xFFEEEEEE),
    tooltipTextStyle: TextStyle(color: Color(0xFF212121), fontSize: 12),
    crosshairColor: Color(0xFF9E9E9E),
    selectionColor: Color(0x3364B5F6),
    borderColor: Color(0x33FFFFFF),
    seriesColors: [
      Color(0xFF64B5F6),
      Color(0xFFEF5350),
      Color(0xFF66BB6A),
      Color(0xFFFFB74D),
      Color(0xFFBA68C8),
      Color(0xFF4DD0E1),
    ],
    shadow: [
      BoxShadow(
        color: Color(0x33000000),
        blurRadius: 8,
        offset: Offset(0, 2),
      ),
    ],
  );
}