xBox_Decoration method
Implementation
BoxDecoration xBox_Decoration(XFDataItem item, {Color? backGround_Color, Color? border_Color, bool border_Visible = false, Color? backGround_Color_ItemSel, Border? border}) {
return BoxDecoration(
borderRadius: xLayout_Rounded ? BorderRadius.circular(xLayout_Rounded_Radius == 0 ? 20 : xLayout_Rounded_Radius) : null,
color: item.isSel && item.isShowDetails == false ? (backGround_Color_ItemSel ?? Colors.grey[700]!.withAlpha(150)) : (backGround_Color ?? Colors.grey[900]),
border: border_Visible
? border ??
Border(
left: item.isShowDetails ? BorderSide(color: border_Color ?? backGround_Color ?? Colors.grey[900]!) : BorderSide.none,
right: item.isShowDetails ? BorderSide(color: border_Color ?? backGround_Color ?? Colors.grey[900]!) : BorderSide.none,
top: item.isShowDetails ? BorderSide(color: border_Color ?? backGround_Color ?? Colors.grey[900]!) : BorderSide.none,
bottom: item.isShowDetails ? BorderSide(color: border_Color ?? backGround_Color ?? Colors.grey[900]!) : BorderSide.none,
)
: null);
}