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