GlassStopper constructor
const
GlassStopper({
- Key? key,
- required Widget builder(
- BuildContext context
- bool stopping = false,
Creates a GlassStopper widget.
The builder
parameter is required and provides the content to render.
The stopping
parameter controls whether glass effects are disabled (defaults to false).
Example:
GlassStopper(
stopping: true,
builder: (context) => Column(
children: [
Text("This area has glass effects disabled"),
Glass(
child: Text("This won't have a glass effect"),
),
],
),
)
Implementation
const GlassStopper({super.key, required this.builder, this.stopping = false});