extendedActionContainer static method

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

Implementation

static Widget extendedActionContainer(
        {Widget? child,
        Size size = const Size(double.infinity, 48),
        ShapeBorder? shape,
        bool main = false,
        bool toggle = false,
        EdgeInsets padding = const EdgeInsets.all(0),
        EdgeInsets margin = const EdgeInsets.all(0),
        VoidCallback? onTap,
        bool renderAccent = false,
        Alignment? accentAligment,
        double accentIntensity = 0}) =>
    NeumorphicExtendedActionContainer(
      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,
    );