xBox_Decoration method

BoxDecoration xBox_Decoration(
  1. XFDataItem item, {
  2. Color? backGround_Color,
  3. Color? border_Color,
  4. bool border_Visible = false,
  5. Color? backGround_Color_ItemSel,
  6. Border? border,
})

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);
}