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