pub fn img_from_path(image: impl Fn() -> PathBuf + 'static) -> ImgExpand description
A view that can display an image and controls its position.
It takes function that returns PathBuf and will convert it into Image.
§Example:
let path_to_ferris = PathBuf::from(r"../../examples/widget-gallery/assets/ferrig.png");
// Create an image from the function returning PathBuf:
img_from_path(move || path_to_ferris.clone())
.style(|s| s.size(50.,50.));§Reactivity
The img function is not reactive, so to make it change on event, wrap it
with dyn_view.