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) => Niku(FractionallySizedBox(
    widthFactor: width, heightFactor: height, child: this._widget));