applyOverlay static method
Applies an overlay color to a backgroundColor
.
Implementation
static Color applyOverlay(Color backgroundColor) {
final Color foregroundColor = onBackgroundColor(backgroundColor);
return Color.alphaBlend(foregroundColor.withOpacity(0.1), backgroundColor);
}