GlassScrollEdgeEffect constructor
const
GlassScrollEdgeEffect({})
Creates a scroll edge effect that fades content at the edges.
When used inside a GlassPage with a background widget, the fade
automatically uses the page's background texture for a pixel-perfect
effect. No fadeColor is needed.
When used outside GlassPage, provide fadeColor to match your
background, or let it default to the scaffold background colour.
Implementation
const GlassScrollEdgeEffect({
super.key,
required this.child,
this.topFadeHeight = 100.0,
this.bottomFadeHeight = 60.0,
this.fadeTop = true,
this.fadeBottom = true,
this.style = GlassScrollEdgeStyle.soft,
this.fadeColor,
});