PangleSize.widthPercent constructor
Implementation
PangleSize.widthPercent(double widthPercent, {required double aspectRatio})
: width = kPangleScreenWidth * widthPercent,
height = kPangleScreenWidth * widthPercent / aspectRatio;
PangleSize.widthPercent(double widthPercent, {required double aspectRatio})
: width = kPangleScreenWidth * widthPercent,
height = kPangleScreenWidth * widthPercent / aspectRatio;