xLayout_Head_Top_Widget method

Widget xLayout_Head_Top_Widget()

Implementation

Widget xLayout_Head_Top_Widget() {
  if (xActions_Head_TOP.length > 0) {
    var c = Container(
        child: Row(
            mainAxisAlignment: xActions_Head_TOP_Alignment ?? (kIsWeb ? MainAxisAlignment.start : MainAxisAlignment.spaceAround),
            children: xActions_Head_TOP
                .map((xclAction) => Container(
                    margin: EdgeInsets.only(right: 3, left: 3),
                    child: XSlidableAction(
                      flex: 1,
                      autoClose: xclAction.autoClose,
                      margin: EdgeInsets.only(bottom: 3),
                      width: xclAction.width,
                      height: xclAction.height,
                      label_Style: xclAction.label_Style,
                      isVertical_BTN: xclAction.isVertical_BTN,
                      toolTip: xclAction.toolTip,
                      action_Child: xclAction.child,
                      onPressed: (context) async => await xclAction.cmd!(itemInEdit_Clone, setState, context),
                      backgroundColor: xclAction.background_Color ?? Colors.grey[900]!,
                      foregroundColor: xclAction.label_Color ?? xclAction.icon_Color ?? Colors.white,
                      icon: xclAction.icon ?? null,
                      icon_Image: xclAction.icon_Image ?? null,
                      label: xclAction.label ?? "",
                    )))
                .toList()));
    return c;
  } else {
    return Container();
  }
}