RemoteSpacerSample
@Sampled
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun RemoteSpacerSample() {
RemoteColumn {
RemoteText("Above Spacer".rs, color = Color.Black.rc)
RemoteSpacer(modifier = RemoteModifier.height(16.rdp))
RemoteText("Below Spacer".rs, color = Color.Black.rc)
}
}
RemoteSpacerWeightSample
@Sampled
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun RemoteSpacerWeightSample() {
RemoteRow(modifier = RemoteModifier.width(200.rdp)) {
RemoteText("Left".rs, color = Color.Black.rc)
RemoteSpacer(modifier = RemoteModifier.weight(1f))
RemoteText("Right".rs, color = Color.Black.rc)
}
}