softRoundButton static method

Widget softRoundButton({
  1. Icon? icon,
  2. String? text,
  3. Size size = const Size(96, 96),
  4. ShapeBorder? shape,
  5. bool main = false,
  6. bool toggle = false,
  7. EdgeInsets padding = paddingStepOne,
  8. EdgeInsets margin = paddingStepOne,
  9. VoidCallback? onTap,
  10. bool renderAccent = false,
  11. Alignment? accentAligment,
  12. double elevationMultiplier = 1,
  13. double accentIntensity = 0,
})

Implementation

static Widget softRoundButton(
        {Icon? icon,
        String? text,
        Size size = const Size(96, 96),
        ShapeBorder? shape,
        bool main = false,
        bool toggle = false,
        EdgeInsets padding = paddingStepOne,
        EdgeInsets margin = paddingStepOne,
        VoidCallback? onTap,
        bool renderAccent = false,
        Alignment? accentAligment,
        double elevationMultiplier = 1,
        double accentIntensity = 0}) =>
    NeumorphicSoftRoundButton(
      animationDuration: animationDuration,
      accentAligment: renderAccent ? accentAligment : null,
      accentColor: renderAccent ? accentColor : null,
      accentIntensity: renderAccent ? accentIntensity : 0,
      onTap: onTap,
      icon: icon,
      text: text,
      elevationMultiplier: elevationMultiplier,
      textColor: main ? altTextColor : null,
      size: size,
      color: main ? transparentColor : AppColors.mainColor,
      gradient: main ? AppColors.mainGradient : null,
      shape: shape ??
          RoundedRectangleBorder(
              borderRadius: BorderRadius.circular(roundedBorder)),
      padding: padding,
      margin: margin,
      toggle: toggle,
    );