restingTrackColor static method

Color restingTrackColor(
  1. BuildContext context
)

Implementation

static Color restingTrackColor(BuildContext context) {
  final c = MiuixTheme.of(context).colors;
  return c.background.computeLuminance() < .5
      ? Color.alphaBlend(Colors.white.withValues(alpha: .133), c.surface)
      : Colors.white;
}