xLayout_xFilter_Builder_XFilterEl method
Override per cambiare la build del Menu per i Multi-Filtro a DropDown
Implementation
DropdownMenuItem xLayout_xFilter_Builder_XFilterEl(XFilterEl<dynamic> xf) {
return DropdownMenuItem(
value: xf,
child: Row(children: [
Container(
width: ((xf.width ?? 200) * widget.xApp!.KforScale) < 170 ? 170 : (xf.width ?? 200) * widget.xApp!.KforScale,
child: XfxDropDown<dynamic>(xf.ColsOfXFdataItemToShow,
label: "",
liItems: xf.Items,
itemSelected: xf.Value,
menu_SearchBoxBorderANDtitle_Color: ThemeData.estimateBrightnessForColor(xf.backgroundMenuColor ?? xf.xPropOfItemToFilter.col_Color) == Brightness.dark ? XColors.foregroundLight : XColors.foregroundDark,
menu_height: xf.menu_height,
background_Color: (value) => xf.backgroundMenuColor ?? xf.xPropOfItemToFilter.col_Color,
item_TextStyle: (p0) => xf.textStyle != null
? xf.textStyle!(p0) //
: xf.Value is XEnumDef
? XStyles.xStyTextForTitle(textColor: ThemeData.estimateBrightnessForColor((xf.Value as XEnumDef).backColor) == Brightness.dark ? XColors.foregroundLight : XColors.foregroundDark)
: XStyles.xStyTextForTitle(textColor: XColors.foregroundLight),
item_LabelStyle: (p0) => xf.textStyle != null ? xf.textStyle!(p0) : XStyles.xStyTextForLabel(textColor: p0),
label_Behavior: FloatingLabelBehavior.auto,
clearBTN_Active: xf.All != null,
clearBTN_getValueForCLEAR: () => xf.All,
onChanged_ItemOfDD: (value) => setState(() => xf.Value = value == null ? xf.All : value)))
]));
}