Skip to content
Snippets Groups Projects
Commit b062a179 authored by Sebastian's avatar Sebastian
Browse files

Add docs for ProfileCircle

parent 4eec5990
No related branches found
No related tags found
1 merge request!24Implement identicons and display as profile images
Pipeline #7766 passed
......@@ -24,6 +24,11 @@ fun PreviewProfileCircle() {
ProfileCircle(90.dp, bytes)
}
/**
* Display an [Identicon] as a profile image within a circle based on a user's author id.
* @param size the size of the circle. In order to avoid aliasing effects, pass a multiple
* of 9 here. That helps as the image is based on a 9x9 square grid.
*/
@Composable
fun ProfileCircle(size: Dp, input: ByteArray) {
Canvas(Modifier.size(size).clip(CircleShape).border(2.dp, MaterialTheme.colors.outline, CircleShape)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment