textWidth

fun textWidth(text: String, style: TextStyle): Float

The width text takes in style, for laying out inline label + value pairs.