XScheda<T extends XFDataItem> constructor

XScheda<T extends XFDataItem>(
  1. Key? key,
  2. T itemInEdit,
  3. XView xView, {
  4. String? title,
  5. Color? title_BackColor,
  6. Color? title_Color,
  7. List<Widget>? title_Widgets,
  8. String? btnOK_label = "OK",
  9. String? btnCancel_label,
  10. bool modeDialog_Active = false,
  11. bool modePage_Active = true,
  12. bool editable = true,
  13. Decoration? decoration,
  14. double? width,
  15. double headerHeight = 0.4,
  16. Color? cell_borderColor,
  17. Color? cell_borderColor_Disabled,
  18. Color? cell_labelColor_Disabled,
  19. bool? viewSch_TYPE,
  20. dynamic xOnReturnBackFromScheda(
    1. void (
      1. void ()
      ),
    2. bool
    )?,
  21. Map<String, XView>? liXView,
  22. bool detts_allowAdd = false,
  23. dynamic detts_OnEditValueInItem(
    1. dynamic
    )?,
  24. dynamic detts_OnTapItem(
    1. XFDataItem
    )?,
  25. dynamic detts_functItem()?,
})

Implementation

XScheda(
  Key? key,
  this.itemInEdit,
  this.xView, {
  this.title,
  this.title_BackColor,
  this.title_Color,
  this.title_Widgets,
  this.btnOK_label = "OK",
  this.btnCancel_label,
  this.modeDialog_Active = false,
  this.modePage_Active = true,
  this.editable = true,
  this.decoration,
  this.width,
  this.headerHeight = 0.4,
  this.cell_borderColor,
  this.cell_borderColor_Disabled,
  this.cell_labelColor_Disabled,
  this.viewSch_TYPE,
  this.xOnReturnBackFromScheda,
  this.liXView,
  this.detts_allowAdd = false,
  this.detts_OnEditValueInItem,
  this.detts_OnTapItem,
  this.detts_functItem,
}) : super(key: key) {
  if (this.title_Widgets == null && modeDialog_Active == true) {
    //gestisco i titoli che verranno messi
    this.title_Widgets = [
      XContainerWithLabel(
        title,
        textStyle: XStyles.xStyTextForSubLabel(this.title_Color ?? XColors.foregroundLight),
        color: this.title_BackColor ?? XColors.backGroundTitleContainerForScheda_MAIN,
      ),
    ];
  }
}