container static method
Widget
container({
- Widget? child,
- double width = double.infinity,
- double height = double.infinity,
- bool dropShadow = true,
- bool dropInnerShadow = false,
- EdgeInsets padding = paddingStepOne,
- EdgeInsets margin = paddingStepOne,
- bool renderAccent = false,
- Alignment? accentAligment,
- double accentIntensity = 0,
Implementation
static Widget container(
{Widget? child,
double width = double.infinity,
double height = double.infinity,
bool dropShadow = true,
bool dropInnerShadow = false,
EdgeInsets padding = paddingStepOne,
EdgeInsets margin = paddingStepOne,
bool renderAccent = false,
Alignment? accentAligment,
double accentIntensity = 0}) =>
NeumorphicContainer(
width: width,
height:height,
margin: margin,
padding: padding,
blur: 0,
borderBlur: 3,
accentAligment: renderAccent ? accentAligment : null,
accentColor: renderAccent ? accentColor : null,
accentIntensity: renderAccent ? accentIntensity : 0,
shadows: dropShadow ? AppColors.currentShadows() : <Shadow>[],
innerShadows:
dropInnerShadow ? AppColors.currentInnerShadows() : <Shadow>[],
borderGradient: AppColors.shadowGradient,
gradient: AppColors.shadowGradient,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(borderRadius)),
child: child,
);