jeziellago / compose-markdown

Markdown Text for Android Jetpack Compose 📋.
MIT License
507 stars 40 forks source link

onTextLayout access #62

Open TinaT2 opened 7 months ago

TinaT2 commented 7 months ago

MarkdownText does have onTextLayout: ((kotlin.Int) -> kotlin.Unit)? = COMPILED_CODE) But on Text compose, we have onTextLayout: (TextLayoutResult) -> Unit = {} which gives us some options like textLayoutResult.lineCount, textLayoutResult.getLineRight(chatRowData.lineCount - 1), textLayoutResult.size.width. How can we access those options?