fractionSize method

Niku fractionSize(
  1. double width,
  2. double height
)

Set both width and height in percent

Equivalent to:

FractionallySizedBox(
  widthFactor: width,
  heightFactor: height
)

Implementation

Niku fractionSize(double width, double height) {
  _widget = FractionallySizedBox(
      widthFactor: width, heightFactor: height, child: _widget);

  return this;
}