accentButton static method

Widget accentButton({
  1. Widget? child,
  2. Size size = const Size(elementWidthTwo, elementHeightTwo),
  3. ShapeBorder? shape,
  4. bool toggle = false,
  5. EdgeInsets padding = paddingStepOne,
  6. EdgeInsets margin = paddingStepOne,
  7. VoidCallback? onTap,
  8. AccentButtonCallback? accentChanged,
})

Implementation

static Widget accentButton(
        {Widget? child,
        Size size = const Size(elementWidthTwo, elementHeightTwo),
        ShapeBorder? shape,
        bool toggle = false,
        EdgeInsets padding = paddingStepOne,
        EdgeInsets margin = paddingStepOne,
        VoidCallback? onTap,
        AccentButtonCallback? accentChanged}) =>
    NeumorphicAccentRoundButton(
      onTap: onTap,
      accentChanged: accentChanged,
      animationDuration: animationDuration,
      size: size,
      color: AppColors.accentColor,
      shape: shape ??
          RoundedRectangleBorder(
              borderRadius: BorderRadius.circular(borderRadius)),
      padding: padding,
      margin: margin,
      toggle: toggle,
      child: child,
    );