XScheda<T extends XFDataItem> constructor
XScheda<T extends XFDataItem> (
- T itemInEdit,
- XView xView, {
- XApp<
XAppState, dynamic, dynamic> ? xApp, - Key? key,
- String? title,
- Color? title_BackColor,
- Color? title_Color,
- Widget? title_Widget,
- List<
Widget> ? title_Widgets_OnTopHeader, - String? xSchDialog_BTNok_label = "OK",
- String? xSchDialog_BTNcancel_label,
- bool modeDialog_Active = false,
- bool modePage_Active = true,
- bool editable = true,
- Decoration? decoration,
- double? width,
- Color? xCell_borderColor,
- Color? xCell_borderColor_Disabled,
- Color? xCell_labelColor_Disabled,
- double xCell_MinHeight = 40,
- bool? xHeader_AreaBorder,
- bool complexUI = false,
- bool allowAddDetts = false,
- bool allowViewDettsAlways = true,
- bool xHead_Show = true,
- bool xBottomBar_AddBTN_Detts_Active = true,
- bool xResizer_AddBTN_Detts = true,
- Future<
bool> xOnBeforeAddDettLayout(- XView xView,
- XFDataItem item,
- void setState(
- void ()
- Future<
XMediaItem?> onGetXMedia()?, - Future onSetXMedia()?,
- Future onDelXMedia()?,
- ObservableList<
XMediaItem> ? listPoolXMedias_ToTake, - bool xEditDialog_BTNs_ForEditValue = false,
- Color? backGroundColor,
Implementation
XScheda(
this.itemInEdit,
this.xView, {
this.xApp,
super.key,
this.title,
this.title_BackColor,
this.title_Color,
this.title_Widget,
this.title_Widgets_OnTopHeader,
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.backGroundColor,
// this.xIsActive_AddItem_DefaultBL = true,
}) : super() {
if (this.title_Widgets_OnTopHeader == null && modeDialog_Active == true) {
//gestisco i titoli che verranno messi
this.title_Widgets_OnTopHeader = [
XContainerWithLabel(
title,
textStyle: XStyles.xStyTextForSubLabel(textColor: this.title_Color ?? XColors.foregroundLight),
color: this.title_BackColor ?? XColors.backGroundTitleContainerForScheda_MAIN,
)
];
}
if (this.backGroundColor == null) {
this.backGroundColor = Colors.black;
}
}