cardContentOpacity static method
Card-mode content opacity. Fades out as we approach fullscreen. Visible from progress 0.0 to ~0.6, then fades.
Implementation
static double cardContentOpacity(double progress) {
final t = progress.clamp(0.0, 1.0);
if (t < 0.25) return 1.0;
return ((0.55 - t) / 0.30).clamp(0.0, 1.0);
}