Improve preview again
This commit is contained in:
parent
67542ad867
commit
1a8e7d7d59
1 changed files with 8 additions and 4 deletions
|
|
@ -143,13 +143,17 @@ private fun ContentToPreview(state: BubbleState) {
|
||||||
interactionSource = MutableInteractionSource(),
|
interactionSource = MutableInteractionSource(),
|
||||||
) {
|
) {
|
||||||
// Render the state as a text to better understand the previews
|
// Render the state as a text to better understand the previews
|
||||||
Text(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.size(width = 120.dp, height = 32.dp)
|
.size(width = 120.dp, height = 32.dp)
|
||||||
.padding(horizontal = 12.dp, vertical = 6.dp),
|
.padding(horizontal = 12.dp, vertical = 6.dp),
|
||||||
fontSize = 10.sp,
|
contentAlignment = Alignment.Center,
|
||||||
text = "${state.groupPosition.javaClass.simpleName} m:${state.isMine.to01()} h:${state.isHighlighted.to01()}"
|
) {
|
||||||
)
|
Text(
|
||||||
|
fontSize = 10.sp,
|
||||||
|
text = "${state.groupPosition.javaClass.simpleName} m:${state.isMine.to01()} h:${state.isHighlighted.to01()}"
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue