This method is used to set padding/margin (for the left and Right side) and width of the screen or widget according to the Viewport width.
double getHorizontalSize(double px) => px * (size.width / 375);