eygraber
06/29/2023, 10:46 PMstandard:wrapping
rule saying Missing newline after "{"
for this code:
supportingText = supportingText?.let {
{ Text(supportingText) }
},
where the type of supportingText
is @Composable (() -> Unit)?
I think it's nice to keep that lambda on one line; the way ktlint wants it doesn't seem as nice to me:
supportingText = supportingText?.let {
{
Text(supportingText)
}
}
is this something that can be configurable, or is this ktlint's opinion and it will stay this way?ephemient
06/30/2023, 2:17 AM{ { } }
is pretty ugly and would more likely write
supportingText = supportingText?.let {
@Composable
fun() = Text(it)
}
eygraber
06/30/2023, 2:01 PMPaul Dingemans
07/03/2023, 12:15 PM