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