container static method

Widget container({
  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 container(
        {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}) =>
    NeumorphicContainer(
      width: width,
      height: height,
      margin: margin,
      padding: padding,
      blur: 0,
      borderBlur: 3,
      accentAligment: renderAccent ? accentAligment : null,
      accentColor: renderAccent ? AppColors.accentColor : null,
      accentIntensity: renderAccent ? accentIntensity : 0,
      shadows: dropShadow ? AppColors.currentShadows() : <Shadow>[],
      innerShadows:
          dropInnerShadow ? AppColors.currentInnerShadows() : <Shadow>[],
      borderGradient: AppColors.shadowGradient,
      gradient: AppColors.shadowGradient,
      shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.circular(borderRadius)),
      child: child,
    );