detailContentOpacity static method

double detailContentOpacity(
  1. double progress
)

Detail/fullscreen content opacity. Fades in from ~0.30 to 0.60.

Implementation

static double detailContentOpacity(double progress) {
  final t = progress.clamp(0.0, 1.0);
  if (t < 0.30) return 0.0;
  return ((t - 0.30) / 0.30).clamp(0.0, 1.0);
}