ChartTheme.light constructor

ChartTheme.light()

Create light theme with enhanced colors.

Returns a professionally designed light theme with:

  • White background
  • Dark text for contrast
  • Subtle grid and axis colors
  • Vibrant gradient color palette
  • Modern rounded corners

Example

final theme = ChartTheme.light();

Implementation

factory ChartTheme.light() {
  return const ChartTheme(
    backgroundColor: Color(0xFFFFFFFF),
    textColor: Color(0xFF111827),
    gridColor: Color(0xFFE5E7EB),
    axisColor: Color(0xFF6B7280),
    gradientColors: [
      Color(0xFF6366F1), // Indigo
      Color(0xFF8B5CF6), // Purple
      Color(0xFFEC4899), // Pink
      Color(0xFF10B981), // Emerald
      Color(0xFFF59E0B), // Amber
    ],
    shadowElevation: 8.0,
    borderRadius: 24.0,
  );
}