xLayout_GetTitleWidget method

Widget xLayout_GetTitleWidget(
  1. int originY
)

Da Overridare per gestire gestire i titoli delle sezioni delle celle nell'HEAD

Implementation

Widget xLayout_GetTitleWidget(int originY) {
  if (widget.modePage_Active) {
    return Container(width: 0, height: 0);
  } else {
    if (widget.title_Widgets_OnTopHeader == null || widget.title_Widgets_OnTopHeader!.isEmpty) {
      return Container(width: 0, height: 0);
    } else {
      var titleIdxFromOriginY = 0;
      if (originY > 0) {
        titleIdxFromOriginY = originY ~/ 2;
        if (titleIdxFromOriginY > widget.title_Widgets_OnTopHeader!.length - 1) titleIdxFromOriginY = 0;
      }
      return widget.title_Widgets_OnTopHeader == null ? Container(width: 0, height: 0) : widget.title_Widgets_OnTopHeader![titleIdxFromOriginY];
    }
  }
}