applyOverlay static method

Color applyOverlay(
  1. Color backgroundColor
)

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);
}