Open phpmaple opened 5 years ago
I am not familiar with Dart - by adding support, do you just mean support that number type?
It looks like it is a different format to the 8 digit hex you can use in CSS in Chrome. They have it the other way round where the last 2 digits represent the alpha.
In theory I have no problems adding support for it, but if it using a different format it gets trickier.
Yes, supporting that 8-digit hex number type to display the color. If you are able to filter on filename extension, this number format will appear in files with the .dart extension. And all dart source code files have the same .dart extension.
there's two issues here:
#RRGGBBAA
The meat of this issue is #2
.
to that end we should look at moving away from the regexp and find a more complete colour solution.
The main difference is the leading alpha value before the standard RGB values. For example:
static const lightGreyBlue = const Color(0xff91bde2);