Created
October 13, 2021 16:40
-
-
Save GRizzi91/ea131a856e7259e17558b6e8eb8b9b5b to your computer and use it in GitHub Desktop.
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
@Preview | |
@Composable | |
fun DrawSquare() { | |
Canvas(modifier = Modifier.size(200.dp)) { | |
drawRect( | |
color = Color.Red, | |
size = size | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment