Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created March 28, 2026 01:14
Show Gist options
  • Select an option

  • Save skydoves/558519d9614e352bc8fb7eea8b6ffdd8 to your computer and use it in GitHub Desktop.

Select an option

Save skydoves/558519d9614e352bc8fb7eea8b6ffdd8 to your computer and use it in GitHub Desktop.
LandscapistImage composable signature
@Composable
public fun LandscapistImage(
imageModel: () -> Any?,
modifier: Modifier = Modifier,
component: ImageComponent = rememberImageComponent {},
imageOptions: ImageOptions = ImageOptions(),
loading: @Composable (BoxScope.(LandscapistImageState.Loading) -> Unit)? = null,
success: @Composable (BoxScope.(LandscapistImageState.Success, Painter) -> Unit)? = null,
failure: @Composable (BoxScope.(LandscapistImageState.Failure) -> Unit)? = null,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment