Skip to main content

remote_image_url

Function remote_image_url 

Source
pub fn remote_image_url(url: impl Into<String>) -> RemoteImage
Expand description

remote_image_url(url)remote_image with the fetch built in: the bytes are downloaded once through the PLATFORM HTTP stack (day-part-http — system proxies/VPN/Low-Data aware, docs/http.md) on a background completion, and pushed into the piece’s own signal via a Setter (so a late arrival after the piece is disposed is a harmless no-op). The placeholder shows until the bytes land; a failed fetch (or non-2xx status) leaves the placeholder.

remote_image_url("https://example.com/logo.png").rounded(8.0).frame(96.0, 96.0)
Day API ↩ Guides· daybrite.dev