Find Row { … } with a single child

Proprietary

A Row { OneChild() } allocates a layout node and runs the row measurement to position exactly one child. Either remove the row or replace with Box(modifier = m) if the row's horizontalArrangement actually does work the parent isn't.

org.openrewrite.kotlin.compose.FindRowWithSingleChild$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.compose.FindRowWithSingleChild$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.