boxContainer static method
Container
boxContainer({
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
- Color color = Colors.transparent,
- Color borderColor = Colors.transparent,
- required List<
Widget> children, - double borderWidth = 0.5,
- double borderRadius = 10,
Box Container
Implementation
static Container boxContainer(
{EdgeInsetsGeometry? margin,
EdgeInsetsGeometry? padding,
CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
Color color = Colors.transparent,
Color borderColor = Colors.transparent,
required List<Widget> children,
double borderWidth = 0.5,
double borderRadius = 10}) {
if (margin == null) margin = EdgeInsets.all(0);
if (padding == null) padding = EdgeInsets.all(0);
return Container(
margin: margin,
padding: padding,
decoration: BoxDecoration(
color: color,
borderRadius: BorderRadius.circular(borderRadius),
border: Border.all(
width: borderWidth, color: borderColor, style: BorderStyle.solid),
),
child: Column(
crossAxisAlignment: crossAxisAlignment,
children: children,
));
}