mirrored_repositories/Flutter_ChatBox_app/lib/config

import 'package:flutter/material.dart';

const Color _customColor = Color(0xff5C11D4);
const List<Color> _colorTheme = [
  _customColor,
  Colors.teal,
  Colors.green,
  Colors.yellow,
  Colors.orange,
  Colors.pink,
  Colors.black
];
class AppTheme {
final int selectedColor;

AppTheme({
  this.selectedColor = 0,
}): assert (selectedColor  >= 0 && selectedColor <= _colorTheme.length-1, 'Colors must be between 0 and $selectedColor');

ThemeData theme (){
return ThemeData(
  useMaterial3: true,
  colorSchemeSeed: _colorTheme[selectedColor],
  // brightness: Brightness.dark
  );
}

}