createSingleColumnCells method

List<Widget> createSingleColumnCells({
  1. required BuildContext context,
  2. required RCPair rowColumn,
  3. ScreenContext? core,
})

Implementation

List<Widget> createSingleColumnCells({required BuildContext context, required RCPair rowColumn, ScreenContext? core}){
  // ketchupDebug('render invoke(${++renderTimes})');
  // testNeedMeasure();
  return List.generate(rowColumn.column, (int cIndex){
      var column = cIndex + 1;
      Size? calculatedAspectRatio = screenSingleAspectRatioSize == null || screen.isTailInclude('$column') ? null : screenSingleAspectRatioSize;
      return outsideRowExpandedAspectRatio(
        aspectRatio: calculatedAspectRatio?.aspectRatio,
        child: Column(
          children: List.generate(rowColumn.row, (int rIndex){
            var row = rIndex + 1;
            var cellname = 'cell-$column-$row';
            return insideColumnExpandedAspectRatio(
              aspectRatio: calculatedAspectRatio?.aspectRatio,
              child: leafContainerWrapping(
                key: core?.debug?.gKeys.putIfAbsent(cellname, ()=>GlobalKey<KetchupUIState>(debugLabel: cellname)),
                context: context,
                leafName: cellname,
                extra: '${cIndex+1}',
                literalAspectRatio: screenSingleAspectRatioSize,
                editModeColor: Colors.primaries[(cIndex * rowColumn.row + rIndex) * 5 % 17].shade100,)
            );
          }),
        ));
    });
}