此方法用於根據視口寬度設置屏幕或小部件的填充/邊距(左側和右側)和寬度。
double getHorizontalSize(double px) { return ((px * width) / figmaDesignWidth).floorToDouble(); }