estimateWidth method

double estimateWidth(
  1. BuildContext context
)

Implementation

double estimateWidth(BuildContext context) {
  double width = 32.0; // Base checkbox container size
  if (label != null) {
    width += 8.0; // Gap between checkbox and label
    width += WidthHelper.measureText(context, label!, TextStyle(fontSize: size.fontSize, letterSpacing: 0.9));
  }
  return width;
}