buildInner method
Implementation
Widget buildInner(Widget child) {
return Container(
width: width,
height: height,
padding: padding,
margin: margin,
alignment: align,
decoration: BoxDecoration(
color: bgColor,
borderRadius:
radius == null ? borderRadius : BorderRadius.circular(radius!),
gradient: gradient,
border: border ?? Border.all(color: borderColor ?? Colors.transparent, width: borderWidth),
boxShadow: shadow > 0 ? [
BoxShadow(
blurRadius: shadow / 2,
spreadRadius: shadow,
color: const Color(0x10000000))
]: null,
),
child: child,
);
}