xfillxTabsDetts method

dynamic xfillxTabsDetts(
  1. XCol xCol,
  2. void parentSetState(
    1. void ()
    )
)

Implementation

xfillxTabsDetts(XCol xCol, void Function(void Function()) parentSetState) async {
  var t = 0;
  liDettTabs.clear();
  for (var i in itemInEdit_Clone.getProp(xCol.colKey)) {
    liDettTabs.add(XTabItem(
        t,
        xCol.colCaption + " " + t.toString(), //
        xCol.colCaption + " " + t.toString(),
        itemClass: i,
        content: xTabViewDett_Widget(i, t, parentSetState), //tabViewPages(widget.xView.cols.firstWhere((element) => element.colKey == xCol.colKey))
        labelColor_Active: Colors.white,
        labelColor_Disabled: Colors.white,
        iconColor_Active: Colors.white,
        iconColor_Disabled: Colors.white,
        color_backGroundTab: Colors.green,
        color_backGroundTab_Activate: Colors.grey));
    t++;
  }

  detts_tabController = TabController(length: liDettTabs.length, vsync: this);
}