sizePercent method
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;
}