GlassStopper constructor

const GlassStopper({
  1. Key? key,
  2. required Widget builder(
    1. BuildContext context
    ),
  3. 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});