double getWidthFromFlex(double width, int flex, int items, double spacing) { return (width * flex / FxScreenMedia.flexColumns).floorToDouble(); }