Created
          July 28, 2021 07:39 
        
      - 
      
- 
        Save zsoltk/3d6c7bdf1ab1032a85d3a2eb811ff85e to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or 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
    
  
  
    
  | @Composable | |
| fun Square(isDarkSquare: Boolean) { | |
| Canvas(modifier = Modifier.fillMaxSize(1f)) { | |
| drawRect(color = if (isDarkSquare) darkSquareColor else lightSquareColor) | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment