img_scale_factor

Function img_scale_factor 

Source
pub fn img_scale_factor(
    child: impl IntoUiNode,
    enabled: impl IntoVar<bool>,
) -> UiNode
Expand description

P Sets if the image desired size is scaled by the screen scale factor.

The image desired size is its original size after img_crop, it is a pixel value, but widgets are layout using device independent pixels that automatically scale in higher definition displays, when this property is enabled the image size is also scaled so that the image will take the same screen space in all devices.

This is enabled by default.

See also img_scale_density, for physical scaling in calibrated monitors.