sizePercent method

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

Set height in percent

Equivalent to:

Flexible(
  child: FractionallySizedBox(
    widthFactor: width / 100,
    heightFactor: height / 100
  )
)

Implementation

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

  return this;
}