XScheda<T extends XFDataItem> constructor

XScheda<T extends XFDataItem>(
  1. T itemInEdit,
  2. XView xView, {
  3. XApp<XAppState, dynamic, dynamic>? xApp,
  4. Key? key,
  5. String? title,
  6. Color? title_BackColor,
  7. Color? title_Color,
  8. List<Widget>? title_Widgets,
  9. String? xSchDialog_BTNok_label = "OK",
  10. String? xSchDialog_BTNcancel_label,
  11. bool modeDialog_Active = false,
  12. bool modePage_Active = true,
  13. bool editable = true,
  14. Decoration? decoration,
  15. double? width,
  16. Color? xCell_borderColor,
  17. Color? xCell_borderColor_Disabled,
  18. Color? xCell_labelColor_Disabled,
  19. double xCell_MinHeight = 40,
  20. bool? xHeader_AreaBorder,
  21. bool complexUI = false,
  22. bool allowAddDetts = false,
  23. bool allowViewDettsAlways = true,
  24. bool xHead_Show = true,
  25. bool xBottomBar_AddBTN_Detts_Active = true,
  26. bool xResizer_AddBTN_Detts = true,
  27. Future xOnBeforeAddDettLayout(
    1. XView xView,
    2. XFDataItem item,
    3. void setState(
      1. void ()
      )
    )?,
  28. Future<XMediaItem?> onGetXMedia(
    1. XMediaItem
    )?,
  29. Future onSetXMedia(
    1. XMediaItem
    )?,
  30. Future onDelXMedia(
    1. XMediaItem
    )?,
  31. ObservableList<XMediaItem>? listPoolXMedias_ToTake,
  32. bool xEditDialog_BTNs_ForEditValue = false,
  33. bool xIsActive_AddItem_DefaultBL = true,
})

Implementation

XScheda(
  this.itemInEdit,
  this.xView, {
  this.xApp,
  super.key,
  this.title,
  this.title_BackColor,
  this.title_Color,
  this.title_Widgets,
  this.xSchDialog_BTNok_label = "OK",
  this.xSchDialog_BTNcancel_label,
  this.modeDialog_Active = false,
  this.modePage_Active = true,
  this.editable = true,
  this.decoration,
  this.width,
  this.xCell_borderColor,
  this.xCell_borderColor_Disabled,
  this.xCell_labelColor_Disabled,
  this.xCell_MinHeight = 40,
  this.xHeader_AreaBorder,
  this.complexUI = false,
  this.allowAddDetts = false,
  this.allowViewDettsAlways = true,
  this.xHead_Show = true,
  this.xBottomBar_AddBTN_Detts_Active = true,
  this.xResizer_AddBTN_Detts = true,
  this.xOnBeforeAddDettLayout,
  this.onGetXMedia,
  this.onSetXMedia,
  this.onDelXMedia,
  this.listPoolXMedias_ToTake,
  this.xEditDialog_BTNs_ForEditValue = false,
  this.xIsActive_AddItem_DefaultBL = true,
}) : super() {
  if (this.title_Widgets == null && modeDialog_Active == true) {
    //gestisco i titoli che verranno messi
    this.title_Widgets = [
      XContainerWithLabel(
        title,
        textStyle: XStyles.xStyTextForSubLabel(textColor: this.title_Color ?? XColors.foregroundLight),
        color: this.title_BackColor ?? XColors.backGroundTitleContainerForScheda_MAIN,
      )
    ];
  }
}