getColumnContainer method

Widget getColumnContainer()

Implementation

Widget getColumnContainer() {
  return Container(
    constraints: BoxConstraints(
      maxWidth: isMore ? 48 : width ?? double.infinity,
      minWidth: isMore ? 48 : width ?? 0,
    ),
    padding: isMore
        ? const EdgeInsets.all(0)
        : (selectable
            ? EdgeInsets.only(
                left: TodaySpacing.tdsSpace3.spacing,
              )
            : EdgeInsets.symmetric(
                horizontal: TodaySpacing.tdsSpace4.spacing,
              )),
    child: selectable
        ? TodayCheckbox(
            key: UniqueKey(),
            value: selected ? TodayCheckboxValue.checked : selectableValue,
            onChanged: (TodayCheckboxValue value) {
              if (onChanged != null) {
                onChanged!(value);
              }
            },
          )
        : (showcase != null
            ? showcase!
            : TodayText(
                label,
                style: TodayTextStyle.tdsFontSmallPlus,
                rawColor: TodayColor.labelSecondary.color,
                textAlign: align,
              )),
  );
}