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