actionContainer static method

Widget actionContainer({
  1. Widget? child,
  2. Size size = const Size(double.infinity, 48),
  3. ShapeBorder? shape,
  4. bool main = false,
  5. bool toggle = false,
  6. double padding = 0,
  7. double margin = 0,
  8. VoidCallback? onTap,
  9. bool renderAccent = false,
  10. Alignment? accentAligment,
  11. double accentIntensity = 0,
})

Implementation

static Widget actionContainer(
        {Widget? child,
        Size size = const Size(double.infinity, 48),
        ShapeBorder? shape,
        bool main = false,
        bool toggle = false,
        double padding = 0,
        double margin = 0,
        VoidCallback? onTap,
        bool renderAccent = false,
        Alignment? accentAligment,
        double accentIntensity = 0}) =>
    NeumorphicActionContainer(
      animationDuration: animationDuration,
      accentAligment: renderAccent ? accentAligment : null,
      accentColor: renderAccent ? AppColors.accentColor : null,
      accentIntensity: renderAccent ? accentIntensity : 0,
      onTap: onTap,
      size: size,
      color: main ? transparentColor : AppColors.mainColor,
      gradient: main ? AppColors.mainGradient : null,
      shape: shape ??
          RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
      padding: padding,
      margin: margin,
      toggle: toggle,
      child: child,
    );