key property

Key? key
final

Creates a widget with Glassmorphic Trend that combines CustomPainter class,BackdropFilter, Expanded, and Flex.

The color and decoration arguments cannot be supplied, since in glassmorphic container designs BoxDecoration is alredy being configured to you You can easily customize borderGradient and linearGradient like: ! Note If you want to create a container with fixed size or dimentions like height , 'width','Size', ! please user use GlassmorphismContainer

GlassmorphicFlexContainer(
  flex:2
  borderRadius: 20,
  blur: 3,
  alignment: Alignment.bottomCenter,
  border: 2,
  linearGradient: LinearGradient(
    begin: Alignment.topLeft,
    end: Alignment.bottomRight,
    colors: [
        Color(0xFFffffff).withOpacity(0.5),
        Colors.red.withOpacity(0.2),
      ],
    stops: [
      0.1,
      1,
    ]),
  borderGradient: LinearGradient(
    begin: Alignment.topLeft,
    end: Alignment.bottomRight,
    colors: [
        Color(0xFFffffff).withOpacity(0.5),
        Colors.red.withOpacity(0.5),
      ],
    ),
  child: SizedBox()
),

Implementation

final Key? key;