loloof64
11/18/2022, 12:55 PMclipAsMinimumSquare
, but in the preview it seems that the composable to which I'm calling this modifier is still a rectangle, whereas its content is a square.
As you can see from the code, I'm calling layout
on the Modifier
, but it seems that I've not defined it well.ephemient
11/18/2022, 1:04 PMModifier.aspectRatio(1f)
already make a square? https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#(androidx.compose.ui.Modifier).aspectRatio(kotlin.Float,kotlin.Boolean)loloof64
11/18/2022, 1:10 PMModifier.aspectRation(1f)
and I'm also getting a square for the main component (ChessBoard).
So I can safely remove my own Modifier