xBottomBarAction_Fill_INTERNAL method

dynamic xBottomBarAction_Fill_INTERNAL()

Methodo INTERNO per il riempimento degli XTabs Principali ("Dettagli della Scheda")

Implementation

xBottomBarAction_Fill_INTERNAL() {
  liBottomActions.clear();
  if (xActions_BOTTOMBAR!.isNotEmpty) {
    xActions_BOTTOMBAR!.forEach((element) {
      liBottomActions.add(XBottomNavigationBarItem(
        element.key ?? "",
        label: element.label,
        icon: element.icon_Image != null ? Container(width: element.width ?? 40, child: Image.memory(element.icon_Image!)) : Container(width: element.width ?? 40, child: Icon(element.icon, color: element.icon_Color, size: element.icon_Size ?? 30)),
        tooltip: element.toolTip,
        label_Color: element.label_Color,
        label_Style: element.label_Style,
        cmd: () => element.cmd!(itemInEdit_Clone, setState, context),
      ));
    });
  }

  if ((editedPage.value)) {
    liBottomActions.add(XBottomNavigationBarItem("saveAndClose", label: xUI_CmdSaveAndClose_Caption, icon: Container(width: 40, child: Icon(Icons.undo, color: Colors.green, size: 30)), tooltip: "Salva le modifiche e chiude la scheda"));
  }
  //XFX xché è l'ADD egenrico della XSCH 1a a DX
  if (xInitList_AddDetts().isNotEmpty && widget.xBottomBar_AddBTN_Detts_Active) {
    liBottomActions.add(XBottomNavigationBarItem("addDett", label: xUI_CmdAddDett_Caption, icon: Container(width: 40, child: Icon(Icons.add, color: Colors.green, size: 30)), tooltip: "Aggiungi un dettaglio..."));
  }
}