TSize.fromInputSize constructor

TSize.fromInputSize(
  1. TInputSize size
)

Creates a size configuration from a TInputSize.

Implementation

factory TSize.fromInputSize(TInputSize size) {
  return TSize(
    minW: size.height,
    minH: size.height,
    hPad: 3,
    vPad: 3,
    font: size.fontSize,
    icon: size.fontSize + 6,
    spacing: size.padding.right,
  );
}