yschimke
10/26/2021, 12:05 PM@Composable
fun MyAppThemePreview(
round: Boolean = true,
content: @Composable () -> Unit,
) {
MyAppTheme {
if (round) {
Box(Modifier.fillMaxSize().background(Color.White)) {
}
Box(modifier = Modifier.fillMaxSize().clip(CircleShape).background(Color.DarkGray)) {
content()
}
} else {
Box(modifier = Modifier.fillMaxSize().background(Color.DarkGray)) {
content()
}
}
}
}
Javier
10/26/2021, 12:06 PMJavier
10/26/2021, 12:07 PMyschimke
10/26/2021, 12:12 PMyschimke
10/26/2021, 12:13 PMyschimke
10/26/2021, 12:13 PMJavier
10/26/2021, 12:34 PMJavier
10/26/2021, 12:34 PMJavier
10/26/2021, 12:34 PMyschimke
10/26/2021, 1:35 PM@Preview(
widthDp = 300,
heightDp = 300,
apiLevel = 26,
uiMode = Configuration.UI_MODE_TYPE_WATCH,
)
John Nichol
10/28/2021, 9:39 AM