Join Slack
Powered by
Is there a maxHeight constraint? I could’ve swore ...
# compose
b
bohregard
07/06/2020, 1:56 PM
Is there a maxHeight constraint? I could’ve swore there was one before, but now I can’t seem to find anything related to max height/width just min.
b
Brett Best
07/06/2020, 1:59 PM
Is this what you’re looking for?
Copy code
Surface(modifier = Modifier.preferredHeightIn(maxHeight = 10.dp)) { }
b
bohregard
07/06/2020, 2:13 PM
yeah I think so! thanks 🙂
2
Views
Open in Slack
Previous
Next