getXGCol method

XGridColumn getXGCol({
  1. XAppBase? xApp,
})

Implementation

XGridColumn getXGCol({XAppBase? xApp}) {
  return XGridColumn(
      minimumWidth: this.minWidth + ((this.sorted ?? false) ? 40 : 0) + 40,
      maximumWidth: this.maximumWidth + ((this.sorted ?? false) ? 40 : 0) + 40,
      width: this.width + ((this.sorted ?? false) ? 40 : 0) + 40,
      allowEditing: true,
      allowSorting: this.colKey == "btn" ? false : this.sorted ?? true,
      allowFiltering: this.colKey == "btn" ? false : this.allowFiltering,
      columnName: this.colKey,
      label: Container(
          child: Stack(children: [
        Container(
            alignment: Alignment.center,
            child: Text(this.colCaption,
                style: header_TextStyle(
                  colorText: forceMyColor
                      ? xmodelXprop.col_Color
                      : xApp != null && xApp!.enterpriseMode
                          ? XColors.enterpriseMode_Foreground
                          : ThemeData.estimateBrightnessForColor(xmodelXprop.col_Color) == Brightness.dark
                              ? Colors.white
                              : xmodelXprop.col_Color,
                )))
      ])));
}