xBuilder_Dialog method

dynamic xBuilder_Dialog(
  1. Color foreColorDefaultForItem
)
inherited

Implementation

xBuilder_Dialog(Color foreColorDefaultForItem) {
  return PopupProps.dialog(
    //searchFieldProps: TextFieldProps(decoration: inputDecorationDD_searchBox(colorBorderANDlabelForSearchBox: widget.al_SearchBoxBorderANDtitle_Color)),
    searchFieldProps: TextFieldProps(
      style: XStyles.xStyTextForLargeTitle(textColor: widget.al_SearchBoxBorderANDtitle_Color ?? getColoFor_TextAndDecoration()),
      decoration: inputDecorationDD_searchBox(colorBorderANDlabelForSearchBox: widget.al_SearchBoxBorderANDtitle_Color ?? getColoFor_TextAndDecoration()),
    ),
    fit: FlexFit.loose,
    showSearchBox: widget.al_SearchBox_Active ?? true,
    title: Row(mainAxisAlignment: MainAxisAlignment.center, children: [
      Container(
        margin: EdgeInsets.only(top: 7),
        child: Text(
          widget.al_Title ?? widget.label ?? "<No Title>",
          style: widget.al_Title_Style ?? XStyles.xStyTextForDescr(textColor: widget.al_Title_Color ?? widget.al_SearchBoxBorderANDtitle_Color ?? getColoFor_TextAndDecoration()),
        ),
      ),
    ]),
    dialogProps: DialogProps(backgroundColor: widget.al_BackGroundColor ?? widget.menu_BackGroundColor ?? (widget.background_Color != null ? widget.background_Color!(null) : Colors.grey[900])),
    itemBuilder: widget.itemWidgetBuilder != null
        ? widget.itemWidgetBuilder
        : ((context, item, isSelected) {
            return Card(
                child: Container(
                    color: getBackColorOfItem_Card(item),
                    padding: EdgeInsets.symmetric(vertical: 5, horizontal: 10),
                    alignment: widget.item_TextAlignment ?? Alignment.center,
                    child: Text(
                      widget.itemAsString != null
                          ? widget.itemAsString!(item as T)
                          : widget.propToShowInItems != null
                              ? (item as dynamic)[widget.propToShowInItems!]
                              : itemAsString_internal(item),
                      maxLines: 3,
                      overflow: TextOverflow.ellipsis,
                      style: getStyleOfItem_Card(item, foreColorDefaultForItem),
                    )));
          }),
  );
}