computeCloseContentBlur static method
Gaussian blur sigma (logical px) applied to the menu rows while the platter collapses on close.
Native rows go soft almost immediately (crisp bright glyph pixels fall
0.61 → 0.06 in one frame). σ = 28 · (1 − u) capped at
_closeContentBlurMaxSigma reproduces that without a visual pop at
u = 1.
Implementation
static double computeCloseContentBlur({
required double rawValue,
double closeStartProgress = 1.0,
}) {
final c = closeStartProgress.clamp(0.05, 1.0);
final u = (rawValue / c).clamp(0.0, 1.0);
return (28.0 * (1.0 - u)).clamp(0.0, _closeContentBlurMaxSigma);
}