ios27Light constant
LiquidGlassSettings
const ios27Light
iOS 27 glassEffect(.regular) in the light appearance.
Measured against the native control on the same screen: the body tint and saturation, the frost and the copy of the content showing through it, the rimShade outline and rimLight highlight, and the GlassLensModel.paraxial rim band. Tuned for GlassQuality.premium, which draws the full material. The standard path and web approximate it: the regular blur stands in for the frost and the specular highlight for the rimLight, while the rimShade outline, bodyShade and the paraxial lens band are premium-only.
GlassButton(
settings: isDark
? LiquidGlassSettings.ios27Dark
: LiquidGlassSettings.ios27Light,
quality: GlassQuality.premium,
...
)
Implementation
static const LiquidGlassSettings ios27Light = LiquidGlassSettings(
glassColor: Color(0x87F8F8F8),
saturation: 2.1,
blur: 0.6,
blurWeight: 0.8,
frost: 14,
frostOpacity: 0.73,
frostClamp: 0.4,
frostWeight: 2.0,
thickness: 32,
refractiveIndex: 1.24,
lensModel: GlassLensModel.paraxial,
lightAngle: 1.5707963267948966, // pi / 2: lit from the top
lightIntensity: 0,
fresnelStrength: 0,
chromaticAberration: 0,
edgeAbsorption: 0.035,
rimShade: 1,
rimLight: 1,
shadow: [
BoxShadow(color: Color(0x04000000), blurRadius: 10, offset: Offset(0, 7)),
],
);