-
-
Save skydoves/70a2b04973bf864c57652428ca402d42 to your computer and use it in GitHub Desktop.
inspection_mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
public fun GlideImage( | |
imageModel: () -> Any?, | |
modifier: Modifier = Modifier, | |
previewPlaceholder: Painter? = null, | |
.. | |
) { | |
if (LocalInspectionMode.current && previewPlaceholder != null) { | |
Image( | |
modifier = modifier, | |
painter = previewPlaceholder, | |
.. | |
) | |
return | |
} | |
// complex logic about requesting network data and render it | |
.. | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment