Travis Griggs
04/08/2024, 7:55 PMStylianos Gakis
04/08/2024, 7:57 PMTravis Griggs
04/08/2024, 7:59 PMStylianos Gakis
04/08/2024, 9:04 PMromainguy
04/08/2024, 9:29 PMromainguy
04/08/2024, 9:30 PMStylianos Gakis
04/08/2024, 9:41 PM@Preview
@Composable
private fun Preview() {
HedvigTheme {
Text(
"Text",
Modifier
.fillMaxSize()
.wrapContentSize()
.graphicsLayer {
rotationX = 70f
}
.debugBorder(),
style = MaterialTheme.typography.headlineMedium,
)
}
}
Gives:Stylianos Gakis
04/08/2024, 9:46 PMscaleY = 2f
along with it makes it look close enough to the original size but with the effect you want, that’s pretty cool. Of course this will now draw a bit out of bounds and it might overlap other things but oh well. Second pic has the original bounds tooTravis Griggs
04/08/2024, 10:39 PMTravis Griggs
04/08/2024, 10:41 PM