accentButton static method
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,
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,
);