appKODE / detekt-rules-compose

A collection of Detekt rules for Jetpack Compose
MIT License
136 stars 8 forks source link

ModifierHeightWithText should not apply when Modifier.height(Intrinsic.Min) #34

Open sadikali opened 5 months ago

sadikali commented 5 months ago

If you specify Modifier.height(Intrinsic.Min) then this rule should not apply, because you allow the views to be drawn out fully and then wrap the content. This is useful when you want a child to expand to the max size of your minimum sized parent.

dimsuz commented 5 months ago

Yes, this looks like a bug to fix! :+1: