mirrored_repositories/wallpye/lib
import 'package:flutter/material.dart';

const Color chryslerBlue = Color(0xff6747E7);
const Color searchBarBackground = Color(0xffF0F0F0);

class HexColor extends Color {
  static int _getColorFromHex(String hexColor) {
    hexColor = hexColor.toUpperCase().replaceAll("#", "");
    if (hexColor.length == 6) {
      hexColor = "FF$hexColor";
    }
    return int.parse(hexColor, radix: 16);
  }

  HexColor(final String hexColor) : super(_getColorFromHex(hexColor));
}
