frostedGlassContainer static method

Widget frostedGlassContainer({
  1. Widget? child,
  2. double width = double.infinity,
  3. double height = double.infinity,
  4. bool dropShadow = true,
  5. bool dropInnerShadow = false,
  6. EdgeInsets padding = paddingStepOne,
  7. EdgeInsets margin = paddingStepOne,
  8. bool renderAccent = false,
  9. Alignment? accentAligment,
  10. double accentIntensity = 0,
})

Implementation

static Widget frostedGlassContainer(
        {Widget? child,
        double width = double.infinity,
        double height = double.infinity,
        bool dropShadow = true,
        bool dropInnerShadow = false,
        EdgeInsets padding = paddingStepOne,
        EdgeInsets margin = paddingStepOne,
        bool renderAccent = false,
        Alignment? accentAligment,
        double accentIntensity = 0}) =>
    NeumorphicFrostedGlassContainer(
      margin: margin,
      padding: padding,
      accentAligment: renderAccent ? accentAligment : null,
      accentColor: renderAccent ? accentColor : null,
      accentIntensity: renderAccent ? accentIntensity : 0,
      shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.circular(borderRadius)),
      child: child,
    );