FrostedGlassEffect constructor
const
FrostedGlassEffect({
- Key? key,
- required Widget child,
- Color color = Colors.black26,
- BorderRadius? radius,
- EdgeInsets? padding,
Creates a FrostedGlassEffect.
This widget wraps a child
widget with a frosted glass effect, using a
semi-transparent color overlay and optional padding and border radius.
Example:
FrostedGlassEffect(
child: Text('Hello, World!'),
color: Colors.black26,
radius: BorderRadius.circular(10),
padding: EdgeInsets.all(8),
)
Implementation
const FrostedGlassEffect({
super.key,
required this.child,
this.color = Colors.black26,
this.radius,
this.padding,
});